Skip to content

Commit

Permalink
Remove update-via-POST blueprint route
Browse files Browse the repository at this point in the history
This was originally added in #1733 but has ended up causing some confusion.  You can still use Angular $resource (just make a custom `update` action), and you can also create per-model routes via `'POST /user/:id': { action: 'user/update', model: 'user' }`
  • Loading branch information
sgress454 committed Nov 30, 2016
1 parent e794717 commit 5c3814d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/hooks/blueprints/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ module.exports = function(sails) {
_bindRestRoute('get %s/:id', 'findOne');
_bindRestRoute('post %s', 'create');
_bindRestRoute('put %s/:id', 'update');
_bindRestRoute('post %s/:id', 'update');
_bindRestRoute('delete %s/:id?', 'destroy');

// Bind "rest" blueprint/shadow routes based on known associations in our model's schema
Expand Down

0 comments on commit 5c3814d

Please sign in to comment.