mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
move auth pages into auth dir
This commit is contained in:
@ -18,7 +18,7 @@ export default defineNitroPlugin((nitro) => {
|
||||
if (userId) break;
|
||||
return sendRedirect(
|
||||
event,
|
||||
`/signin?redirect=${encodeURIComponent(event.path)}`
|
||||
`/auth/signin?redirect=${encodeURIComponent(event.path)}`
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
@ -3,5 +3,5 @@ import sessionHandler from "../internal/session";
|
||||
export default defineEventHandler(async (h3) => {
|
||||
await sessionHandler.clearSession(h3);
|
||||
|
||||
return sendRedirect(h3, "/signin");
|
||||
return sendRedirect(h3, "/auth/signin");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user