eirikurn/swagger-doc — pull request #1 by ecaron (2013-02-04 22:13:16+00:00)
Title: Offer more run-time configuration options

Storing the results of server.get into an object (swagger.routeNames), to make it easier to know the connection between a Swagger doc & the Express/Restify path.

Also introducing the capability, per-user, to hide certain routes. This has proven useful within server.use() to (for example) say "if user is admin, swagger.hiddenPaths = [], else swagger.hidePath("/control-panel")

(To accomplish this, I also had to pull the discoveryUrl route function out of the configure method.)