@ludin-docs/nestjs
v0.6.5
Published
NestJS module for ludin – Swagger UI with login, accounts, IP allowlist and a themeable UI.
Readme
@ludin-docs/nestjs
Nestjs module for ludin — API docs with login, accounts & roles, IP allowlist and an audit log.
npm i @ludin-docs/core @ludin-docs/express @ludin-docs/nestjssetupLudin is a drop-in for SwaggerModule.setup:
import { setupLudin } from '@ludin-docs/nestjs';
const document = SwaggerModule.createDocument(app, config);
setupLudin(app, '/docs', document, {
auth: { users: [{ email: '[email protected]', password: process.env.DOCS_ADMIN_PW!, role: 'admin' }] },
});Or as a module: LudinModule.forRoot({ path: '/docs', spec: () => document, auth: { ... } }).
All options and roles are documented in the main README.
MIT
