Permalink
Browse files

delete works too. woot

  • Loading branch information...
Chris Nelson
Chris Nelson committed Jan 12, 2012
1 parent 91eaa5c commit e6689103941ea0bad85d12c424ef2dae3d38454a
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/mongoose-spine.coffee
@@ -20,4 +20,5 @@ exports.mountModel = (app, model) ->
app.post "/#{pluralClassName.toLowerCase()}", routes.create
app.get "/#{pluralClassName.toLowerCase()}/:#{model.className.toLowerCase()}", routes.show
app.put "/#{pluralClassName.toLowerCase()}/:#{model.className.toLowerCase()}", routes.update
+ app.del "/#{pluralClassName.toLowerCase()}/:#{model.className.toLowerCase()}", routes.destroy

0 comments on commit e668910

Please sign in to comment.