remove: root/login
This commit is contained in:
@@ -10,7 +10,7 @@ import { getUserConfig } from '@/modules/fm-manager/index.ts';
|
||||
export const rediretHome = async (req: http.IncomingMessage, res: http.ServerResponse) => {
|
||||
const user = await getLoginUser(req);
|
||||
if (!user?.token) {
|
||||
res.writeHead(302, { Location: '/root/login/' });
|
||||
res.writeHead(302, { Location: '/root/home/' });
|
||||
res.end();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user