express-swagger-ui-router
Cleanly serve swagger-ui
and a local openapi configuration file.
Installation
npm install --save express-swagger-ui-router# Install peer dependencies npm install --save swagger-ui express
Usage
This module exports a single function with a configFile
parameter which takes the path to a local openapi
configuration file. It returns an express.Router
instance which can be mounted at any desired path.
;;; const app = ; app; app; // Access swagger-ui at localhost:3000/swagger
- Forked from express-swagger-ui by Andreas Pizsa (github/AndreasPizsa, twitter/AndreasPizsa).