Skip to content

Commit

Permalink
updated destroy route
Browse files Browse the repository at this point in the history
  • Loading branch information
abarnhard committed Aug 5, 2014
1 parent d2457b1 commit f1d6c97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function(app, express){
app.post('/items', items.create);
app.get('/items', items.index);
app.get('/items/:id', items.show);
app.post('/items/:id', items.destroy);
app.post('/items/:id/delete', items.destroy);

console.log('Pipeline Configured');
};
Expand Down
2 changes: 1 addition & 1 deletion app/views/items/show.jade
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ html
li: a(href='/items/new') Add Item
li: a(href='/items') View Items
#item
form(method='post', action='/items/#{item._id}')
form(method='post', action='/items/#{item._id}/delete')
table
thead
tr
Expand Down

0 comments on commit f1d6c97

Please sign in to comment.