UNPKG

swagger-less

Version:

A zero-config, code-first tool that automates Swagger/OpenAPI documentation in Express.js apps. Write cleaner routes with built-in support for reusability, composability, and real-time doc generation—without cluttering your codebase with annotations or YA

12 lines (8 loc) • 214 B
const routes = []; function registerRoute(builder) { routes.push(builder.getConfig()); } function getRegisteredRoutes() { return routes; } module.exports = { registerRoute, getRegisteredRoutes };