Skip to content

Instantly share code, notes, and snippets.

@devsignite
Created June 29, 2013 17:50
Show Gist options
  • Select an option

  • Save devsignite/5892030 to your computer and use it in GitHub Desktop.

Select an option

Save devsignite/5892030 to your computer and use it in GitHub Desktop.

Revisions

  1. devsignite created this gist Jun 29, 2013.
    5 changes: 5 additions & 0 deletions api-routes.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    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);