Skip to content

Commit

Permalink
support for OPTIONS verb
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kravchenko committed May 11, 2013
1 parent e7c3340 commit 991e20d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.coffee
Expand Up @@ -87,6 +87,7 @@ module.exports = (server, log, resourcesPath = 'resources') ->
global.HEAD = (args...) -> registerControllerMethod 'head', args
global.PUT = (args...) -> registerControllerMethod 'put', args
global.DELETE = (args...) -> registerControllerMethod 'del', args
global.OPTIONS = (args...) -> registerControllerMethod 'opts', args

server.resource = (name, path = null) ->
path = "/#{name}" if path is null
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "se7ensky-restify-resource",
"description": "Pretty resource routing for restify",
"version": "1.2.0",
"version": "1.2.1",
"homepage" : "https://github.com/Se7enSky/se7ensky-restify-resource",
"engines": {
"node": "*"
Expand Down

0 comments on commit 991e20d

Please sign in to comment.