1.0.2 • Published 2 years ago

@brownsteven-fs/swagger_pkg v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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);
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago