diff --git a/src/index.ts b/src/index.ts index 1e0ca0b..b585d7b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -64,7 +64,7 @@ export const swagger = app.get( path, - (() => { + () => { const combinedSwaggerOptions = { url: `${relativePath}/json`, dom_id: '#swagger-ui', @@ -108,7 +108,7 @@ export const swagger = } } ) - })() + } ).get( `${path}/json`, () => {