Serve swagger-ui with express.js (without hacking `node_modules/swagger-ui/dist/index.html`)
npm install express-swagger-ui> Serve swagger-ui with express.js (without hacking node_modules/swagger-ui/dist/index.html)
Install with npm
``sh`
$ npm i express-swagger-ui --save
`bash`
npm i -S express swagger-ui
`js`
const express = require('express');
const app = express();
require('express-swagger-ui')({
app : app,
swaggerUrl: '/swagger.json', // this is the default value
localPath : '/explorer' // this is the default value
});
{%= apidocs("index.js") %}
{%= related([]) %}
Install dev dependencies:
`sh``
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Andreas Pizsa
+ github/AndreasPizsa
+ twitter/AndreasPizsa
Copyright © 2016 Andreas Pizsa
Released under the MIT license.
*
_This file was generated by verb-cli on April 06, 2016._