feat: refactoring, soem work on forms
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { unsetAuthCookie } from "../../lib/auth.ts";
|
||||
import { define } from "../../utils.ts";
|
||||
|
||||
export const handler = define.handlers({
|
||||
POST(ctx) {
|
||||
const headers = new Headers();
|
||||
unsetAuthCookie(headers);
|
||||
|
||||
headers.set("location", new URL("/", ctx.req.url).toString());
|
||||
return new Response(null, {
|
||||
status: 303,
|
||||
headers,
|
||||
});
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user