mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 08:41:15 +10:00
fix: signout route
This commit is contained in:
7
server/routes/auth/signout.get.ts
Normal file
7
server/routes/auth/signout.get.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import sessionHandler from "../../internal/session";
|
||||
|
||||
export default defineEventHandler(async (h3) => {
|
||||
await sessionHandler.signout(h3);
|
||||
|
||||
return sendRedirect(h3, "/auth/signin");
|
||||
});
|
||||
Reference in New Issue
Block a user