From 9bbb41a08a9417b386310414affa1511fb636b33 Mon Sep 17 00:00:00 2001 From: Pranav C <61551451+pranavxc@users.noreply.github.com> Date: Fri, 6 Aug 2021 12:24:42 +0530 Subject: [PATCH] fix: Update Swagger json path & favicon re #428 Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com> --- packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts | 1 + packages/nocodb/src/lib/noco/rest/ui/auth/swagger.ts | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts b/packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts index 595f9e4b13..81e9f69a4b 100644 --- a/packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts +++ b/packages/nocodb/src/lib/noco/rest/RestApiBuilder.ts @@ -1542,6 +1542,7 @@ export class RestApiBuilder extends BaseApiBuilder { this.router.get(`/${this.getDbAlias()}/swagger`, async (_req, res) => { res.send(ejs.render((await import('./ui/auth/swagger')).default, { + ncPublicUrl: process.env.NC_PUBLIC_URL || '', baseUrl: `/`, dbAlias: this.getDbAlias(), projectId: this.projectId diff --git a/packages/nocodb/src/lib/noco/rest/ui/auth/swagger.ts b/packages/nocodb/src/lib/noco/rest/ui/auth/swagger.ts index 6b770bc3b7..d8e5fe666d 100644 --- a/packages/nocodb/src/lib/noco/rest/ui/auth/swagger.ts +++ b/packages/nocodb/src/lib/noco/rest/ui/auth/swagger.ts @@ -2,11 +2,10 @@ export default ` XC Swagger UI - - + + - - +
@@ -14,7 +13,7 @@ export default `