From 6a040882c7dac77d1feb12c53bd2b97b15b8a9df Mon Sep 17 00:00:00 2001 From: Schnitz <12687466+CptSchnitz@users.noreply.github.com> Date: Thu, 31 Jul 2025 10:39:51 +0300 Subject: [PATCH] feat: add optional custom ability --- src/OpenapiRouter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OpenapiRouter.ts b/src/OpenapiRouter.ts index 6aecd0c..6a52022 100644 --- a/src/OpenapiRouter.ts +++ b/src/OpenapiRouter.ts @@ -9,6 +9,7 @@ export interface OpenapiRouterConfig { filePathOrSpec: string | JsonObject; rawPath?: string; uiPath: string; + customUiCss?: string; } /** @@ -79,7 +80,7 @@ export class OpenapiViewerRouter { } this.router.use(this.config.uiPath, serve); - this.router.get(this.config.uiPath, setup(openapiSpec)); + this.router.get(this.config.uiPath, setup(openapiSpec, undefined, undefined, this.config.customUiCss)); this.isAlreadySetup = true; }