From 9381c59112156aaf712dbfe38cc5b25cb244e1b3 Mon Sep 17 00:00:00 2001 From: Tine Jozelj Date: Mon, 11 Sep 2023 14:52:50 +0200 Subject: [PATCH] fix: use global prefix --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 37615aa..45d5db2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -37,6 +37,8 @@ export const swagger = ...documentation.info } + const pathWithPrefix = `${app.config.prefix}${path}`; + app.get(path, () => { return new Response( ` @@ -61,7 +63,7 @@ export const swagger =