mirror of
https://github.com/logto-io/logto.git
synced 2025-04-14 23:11:31 -05:00
refactor(core): refactor root path (#1352)
* refactor(core): refactor root path refactor root path * fix(core): comment fix comment fix
This commit is contained in:
parent
084a2bcd03
commit
84aa0e866d
1 changed files with 2 additions and 2 deletions
|
@ -9,9 +9,9 @@ export default function koaRootProxy<
|
|||
return async (ctx, next) => {
|
||||
const requestPath = ctx.request.path;
|
||||
|
||||
// Empty path return 404
|
||||
// Redirect root path to the Admin Console welcome page
|
||||
if (requestPath === '/') {
|
||||
ctx.throw(404);
|
||||
ctx.redirect('/welcome');
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue