diff --git a/lib/services.template.ejs b/lib/services.template.ejs index f01b026..77dbf88 100644 --- a/lib/services.template.ejs +++ b/lib/services.template.ejs @@ -69,8 +69,8 @@ if (typeof module !== 'undefined' && typeof exports !== 'undefined' && <%-: modelName | q %>, [ 'LoopBackResource', 'LoopBackAuth', '$injector', '$q', - function(Resource, LoopBackAuth, $injector, $q) { - var R = Resource( + function(LoopBackResource, LoopBackAuth, $injector, $q) { + var R = LoopBackResource( urlBase + <%-: meta.ctor | getPropertyOfFirstEndpoint:'fullPath' | q %>, <% /* Constructor arguments are hardcoded for now.