@coorpacademy/swagger-ui-express
v2.0.5
Published
Express middleware to ship swagger ui
Downloads
72
Maintainers
Keywords
Readme
Swagger-ui-middleware
Express Helper to ship swagger-ui explorer :world_map:
const express = require('express');
const createSwaggerUiMiddleware = require('@coorpacademy/swagger-ui-express');
const app = express();
app.use(
createSwaggerUiMiddleware({
swaggerDoc: require('./swagger.json'),
apiDocs: '/api-docs',
swaggerUi: '/explorer',
indexPath: 'index.html'
})
);
app.listen(8000);