swaggerize-defaulthandler

1.0.9 • Public • Published

swaggerize-defaulthandler

This is a direct fork of swaggerize-routes with the difference that you can use a defaulthandler like the following example:

var builder = require('swaggerize-routes');
 
var routes = builder({
    api: require('./api.json'),
    defaulthandler: function (req, reply) {
       reply.('something');
    },
    security: './security' //Optional - security authorize handlers as per `securityDefinitions`
});

Readme

Keywords

none

Package Sidebar

Install

npm i swaggerize-defaulthandler

Weekly Downloads

1

Version

1.0.9

License

Apache-2.0

Last publish

Collaborators

  • dankle