Browse Source

fix: routing bug

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/614/head
Pranav C 3 years ago
parent
commit
32d4c465b1
  1. 6
      packages/nc-lib-gui/lib/XcLibGui.js
  2. 2
      packages/nc-lib-gui/package.json

6
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;
}

2
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” <pranavxc@gmail.com>",
"homepage": "https://gitlab.com/xgenecloud-ts/xgenecloud-ts#readme",

Loading…
Cancel
Save