Skip to content

Instantly share code, notes, and snippets.

@devsignite
Created June 29, 2013 17:50
Show Gist options
  • Save devsignite/5892030 to your computer and use it in GitHub Desktop.
Save devsignite/5892030 to your computer and use it in GitHub Desktop.
Express.js api routing
app.get('/api/website', routes.api.website.get);
app.get('/api/website/:id', routes.api.website.getById);
app.post('/api/website', routes.api.website.create);
app.put('/api/website/:id', routes.api.website.update);
app.delete('/api/website/:id', routes.api.website.delete);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment