Skip to content

Commit

Permalink
Tweaking code, updating router
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Nov 13, 2018
1 parent 9277946 commit a1ce6fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/regex.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ module.exports = {
encodeJson: /application\/json/,
head: /^HEAD$/,
"get": /^(GET|HEAD|OPTIONS)$/,
getOnly: /^GET$/i,
hasParam: /\/:(\w*)/,
getOnly: /^GET$/,
hasParam: /\/:\w*/,
hasOrderByDesc: /(\?|&)order_by=desc/,
hypermedia: /(([a-z]+(_)?)?id|url|uri)$/i,
id: /^(_)?id$/i,
id: /^_?id$/i,
indent: /application\/json;\sindent=(\d+)/,
jsonWrap: /^[\[\{"]/,
leading: /.*\//,
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"tiny-merge": "^1.0.0",
"tiny-uuid4": "^1.0.1",
"tiny-xml": "^1.0.6",
"woodland": "^7.3.1",
"woodland": "^7.3.2",
"yamljs": "^0.3.0",
"yargs": "^12.0.2"
},
Expand Down

0 comments on commit a1ce6fa

Please sign in to comment.