Skip to content

Commit

Permalink
Add modify to keyed methods to enable patch with id
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Sroka committed Feb 23, 2017
1 parent 734c2c1 commit 929e852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resource-router-middleware.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var Router = require('express').Router;

var keyed = ['get', 'read', 'put', 'patch', 'update', 'del', 'delete'],
var keyed = ['get', 'read', 'put', 'update', 'patch', 'modify', 'del', 'delete'],
map = { index:'get', list:'get', read:'get', create:'post', update:'put', modify:'patch' };

module.exports = function ResourceRouter(route) {
Expand Down

0 comments on commit 929e852

Please sign in to comment.