1.0.8 • Published 1 year ago

@nanoexpress/middleware-swagger-ui v1.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
1 year ago

swagger-ui

Swagger UI Frontend middleware

This middleware is marked as legacy and should be used only for supporting old project

Installation

npm i @nanoexpress/middleware-swagger-ui
# or
yarn add @nanoexpress/middleware-swagger-ui

Example

See the examples directory

Usage

ESM Module

import swaggerUi from '@nanoexpress/middleware-swagger-ui';

app.define(swagger); // For nanoexpress this line doesn't need
app.use('/swagger-ui-dist', swaggerUi());

CJS Module

const swaggerUi = require('@nanoexpress/middleware-swagger-ui/cjs');

app.define(swagger); // For nanoexpress this line doesn't need
app.use('/swagger-ui-dist', swaggerUi());

Options

Options nameDefaultRequiredDescription
options.titlenanoexpress - ReDocNoTitle of documentation page
options.path/docs/NoPath of documentation page
options.url-NoURL of Swagger file

License

MIT

1.0.8

1 year ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago