Skip to content

Instantly share code, notes, and snippets.

@robdodson
Created October 17, 2012 21:54
Show Gist options
  • Select an option

  • Save robdodson/3908528 to your computer and use it in GitHub Desktop.

Select an option

Save robdodson/3908528 to your computer and use it in GitHub Desktop.
routes
app.resource("data/post", PostResource);
app.resource("data/author", AuthorResource);
app.resource("data/media", MediaResource);
// additional post routes
app.delete('/data/post', PostResource.destroy_all);
app.delete ('/data/author', AuthorResource.destroy_all);
app.delete ('/data/media', MediaResource.destroy_all);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment