You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Readme.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -60,8 +60,8 @@ In your main application file (i.e. app.js or server.js) just add the following:
60
60
61
61
Lastly just call `app.resource()` with your controller name. Nesting is done by passing a function that can call `app.resource()` for each nested resource. Options can also be passed as the second parameter which override the options set in the controller itself.
62
62
63
-
app.resource('articles', { version : 'v1'} function() {
64
-
app.resource('comments', { version : 'v1', id: 'id' }); // You can also call `this.resource('comments')`
0 commit comments