From 32d4c465b1e56a9eb12f5bb81ebec2d14d247162 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 4 Oct 2021 19:56:43 +0530 Subject: [PATCH] fix: routing bug Signed-off-by: Pranav C --- packages/nc-lib-gui/lib/XcLibGui.js | 6 ------ packages/nc-lib-gui/package.json | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/nc-lib-gui/lib/XcLibGui.js b/packages/nc-lib-gui/lib/XcLibGui.js index 0d0b4d117b..c272353351 100644 --- a/packages/nc-lib-gui/lib/XcLibGui.js +++ b/packages/nc-lib-gui/lib/XcLibGui.js @@ -11,12 +11,6 @@ class XcLibGui { expressMiddleware() { const router = express.Router(); - router.get('/', (request, response) => { - response.header('Cache-Control', 'private, no-cache, no-store, must-revalidate'); - response.header('Expires', '-1'); - response.header('Pragma', 'no-cache'); - response.sendFile(path.join(__dirname, 'dist','index.html')); - }); router.use('/', express.static(path.join(__dirname, 'dist'))); return router; } diff --git a/packages/nc-lib-gui/package.json b/packages/nc-lib-gui/package.json index f060e61d7f..63ee0c6403 100644 --- a/packages/nc-lib-gui/package.json +++ b/packages/nc-lib-gui/package.json @@ -1,6 +1,6 @@ { "name": "nc-lib-gui", - "version": "0.2.62", + "version": "0.2.64", "description": "> TODO: description", "author": "“pranavxc” ", "homepage": "https://gitlab.com/xgenecloud-ts/xgenecloud-ts#readme", @@ -30,4 +30,4 @@ "express": "^4.17.1", "vuedraggable": "^2.24.3" } -} \ No newline at end of file +}