Skip to content

Instantly share code, notes, and snippets.

@agustinf
Created December 28, 2011 14:56
Show Gist options
  • Save agustinf/1528220 to your computer and use it in GitHub Desktop.
Save agustinf/1528220 to your computer and use it in GitHub Desktop.
//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