Set restangularjs URL properly.