@nanoexpress/middleware-redoc
v1.0.4
Published
ReDOC middleware for nanoexpress
Downloads
9
Maintainers
Readme
ReDoc
redoc middleware for nanoexpress swagger
Installation
npm i @nanoexpress/middleware-redoc
# or
yarn add @nanoexpress/middleware-redoc
Usage
See here for more info
ESM Module
import reDoc from '@nanoexpress/middleware-redoc';
app.define(swagger); // For nanoexpress this line doesn't need
app.use(reDoc());
CJS Module
const reDoc = require('@nanoexpress/middleware-redoc/cjs');
app.define(swagger); // For nanoexpress this line doesn't need
app.use(reDoc());
Options
| Options name | Default | Required | Description |
| --------------- | ------------------- | -------- | --------------------------- |
| options.title
| nanoexpress - ReDoc | No | Title of documentation page |
| options.path
| /docs
| No | Path of documentation page |
| options.url
| - | No | URL of Swagger file |
License
MIT