0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-04-14 23:11:31 -05:00

refactor(core): refactor root path ()

* refactor(core): refactor root path

refactor root path

* fix(core): comment fix

comment fix
This commit is contained in:
simeng-li 2022-07-01 18:00:08 +08:00 committed by GitHub
parent 084a2bcd03
commit 84aa0e866d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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