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'}); |
NewerOlder