Skip to content

Commit

Permalink
Updated shortcut update route to make :id required.
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Feb 12, 2014
1 parent e534acd commit c271550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hooks/blueprints/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ module.exports = function(sails) {

sails.router.bind( _getRoute('%s/find/:id?'), _getAction('find'), null, routeOpts );
sails.router.bind( _getRoute('%s/create'), _getAction('create'), null, routeOpts );
sails.router.bind( _getRoute('%s/update/:id?'), _getAction('update'), null, routeOpts );
sails.router.bind( _getRoute('%s/update/:id'), _getAction('update'), null, routeOpts );
sails.router.bind( _getRoute('%s/destroy/:id?'), _getAction('destroy'), null, routeOpts );

// Bind "shortcuts" for add/remove (plural associations only)
Expand Down

0 comments on commit c271550

Please sign in to comment.