Skip to content

Commit

Permalink
support for restify
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericgermain committed Jun 20, 2014
1 parent 6af315a commit b08db5c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.js
Expand Up @@ -28,10 +28,11 @@ var DocRouter = function (connectRouter, baseUrl) {
getWadl(req, res);
});


this.connectRouter.options("/", function (req, res) {
getWadl(req, res);
});
if (this.connectRouter.options != undefined) { // restify doesn't support options
this.connectRouter.options("/", function (req, res) {
getWadl(req, res);
});
}

var method,
i,
Expand Down

0 comments on commit b08db5c

Please sign in to comment.