tsoa-next / @tsoa-next/runtime / RoutesConfig
Interface: RoutesConfig
Defined in: packages/runtime/src/config.ts:236
Properties
authenticationModule?
optional authenticationModule?: string;Defined in: packages/runtime/src/config.ts:275
Authentication module path used by generated routes.
basePath?
optional basePath?: string;Defined in: packages/runtime/src/config.ts:255
Base API path; e.g. the '/v1' in https://myapi.com/v1
bodyCoercion?
optional bodyCoercion?: boolean;Defined in: packages/runtime/src/config.ts:289
Whether to implicitly coerce body parameters into an accepted type.
Default
trueesm?
optional esm?: boolean;Defined in: packages/runtime/src/config.ts:282
When enabled, generated route imports use .js extensions for ESM output.
Default
falseiocModule?
optional iocModule?: string;Defined in: packages/runtime/src/config.ts:270
IoC module path, for example ./inversify/ioc.
middleware?
optional middleware?: "express" | "hapi" | "koa";Defined in: packages/runtime/src/config.ts:260
Middleware provider.
middlewareTemplate?
optional middlewareTemplate?: string;Defined in: packages/runtime/src/config.ts:265
Custom Handlebars template path used instead of the built-in middleware template.
noWriteIfUnchanged?
optional noWriteIfUnchanged?: boolean;Defined in: packages/runtime/src/config.ts:250
Skips writing the route file when the generated content matches the existing file.
rewriteRelativeImportExtensions?
optional rewriteRelativeImportExtensions?: boolean;Defined in: packages/runtime/src/config.ts:296
When enabled, generated route imports keep .ts extensions to support TypeScript 5.7 rewriteRelativeImportExtensions.
Default
falseroutesDir
routesDir: string;Defined in: packages/runtime/src/config.ts:240
Directory where generated route files are written.
routesFileName?
optional routesFileName?: string;Defined in: packages/runtime/src/config.ts:245
Filename for the generated route module.
