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