0.0.7 • Published 3 years ago
swagger-hook-decorators v0.0.7
swagger-hook-decorators
add decorators for generated swagger file, and to bind paths, for a sails app.
usage
for auto generated swagger file, install sails-hook-swagger-generator
.
for use of @Path
and @GET
, @POST
,...etc., you need to import routes
in your config/routes.js, and add it to the module.exports.routes
like:
const { routes } = require('swagger-hook-decorators');
module.exports.routes = {...routes()}
thats it!