@brownsteven-fs/swagger_pkg
v1.0.2
Published
Swagger UI Package for class.
Downloads
8
Readme
How to use
To add the Swagger Docs to your express API, install the library
npm install @brownsteven-fs/swagger_pkg
Add the following code to your Express's index.js
const getSwaggerMiddleware = require("@brownsteven-fs/swagger_pkg");
const { serveMiddleware, setupMiddleware } = getSwaggerMiddleware();
app.use("/api-docs", serveMiddleware, setupMiddleware);