Created
December 28, 2011 14:56
-
-
Save agustinf/1528220 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//If we have a module (here called users.js) that defines actions such as index, show, edit, etc. we pass it as the second parameter for app.resource(). | |
users_resource = app.resource('users', require('./modules/users.js')); | |
//We don't have a module, but we will map functions manually later. Notice we define the base:"/api" here. | |
users_resource = app.resource('others', {base:'/api'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment