Skip to content

Instantly share code, notes, and snippets.

@vgheri
Created April 21, 2013 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vgheri/5429464 to your computer and use it in GitHub Desktop.
Save vgheri/5429464 to your computer and use it in GitHub Desktop.
function setup(app, handlers) {
app.post('/api/profiles', handlers.account.createAccount);
app.get('/api/profiles/:username', handlers.account.getAccount);
app.put('/api/profiles/:username', handlers.account.updateAccount);
app.del('/api/profiles/:username', handlers.account.deleteAccount);
app.post('/api/lists', handlers.list.createShoppingList);
app.post('/api/lists/:id', handlers.list.createShoppingList);
app.put('/api/lists/:id', handlers.list.updateShoppingList);
app.get('/api/lists/:userId', handlers.list.getShoppingLists);
app.del('/api/lists/:id', handlers.list.deleteShoppingList);
}
exports.setup = setup;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment