Browse Source

fix: redirect to dashboard

fix #197
pull/154/head
“pranavxc” 4 years ago
parent
commit
a625a3e909
  1. 1
      packages/nocodb/src/lib/noco/Noco.ts

1
packages/nocodb/src/lib/noco/Noco.ts

@ -215,6 +215,7 @@ export default class Noco {
this.metaMgr.setListener(runTimeHandler); this.metaMgr.setListener(runTimeHandler);
await this.metaMgr.initHandler(this.router); await this.metaMgr.initHandler(this.router);
this.router.use(this.config.dashboardPath, await this.ncToolApi.expressMiddleware()); this.router.use(this.config.dashboardPath, await this.ncToolApi.expressMiddleware());
this.router.get('/', (_req, res) => res.redirect(this.config.dashboardPath));
this.initSentryErrorHandler(); this.initSentryErrorHandler();

Loading…
Cancel
Save