Browse Source

chore: remove unused code in XcLibGui.js

this is no longer required as we are using hash-based routing
pull/3497/head
Wing-Kam Wong 2 years ago
parent
commit
e78a03a867
  1. 5
      packages/nc-lib-gui/lib/XcLibGui.js

5
packages/nc-lib-gui/lib/XcLibGui.js

@ -10,11 +10,6 @@ class XcLibGui {
// Express will serve up production assets i.e. main.js
router.use(dashboardPath, express.static(path.join(__dirname, 'dist')));
// If Express doesn't recognize route serve index.html
router.get(`${dashboardPath}/*`, (_req, res) => {
res.sendFile(path.join(__dirname, 'dist', 'index.html'));
});
return router;
}
}

Loading…
Cancel
Save