Fix: Finished Backend

This commit is contained in:
aronmal 2024-02-26 21:46:33 +01:00
parent 6b388729d9
commit ffaf8d989e
Signed by: aronmal
GPG key ID: 816B7707426FC612
30 changed files with 1478 additions and 873 deletions

View file

@ -1,4 +1,5 @@
import { APIEvent } from "@solidjs/start/server/types";
import httpStatus from "http-status";
import { appendHeader } from "vinxi/http";
import { lucia } from "~/lib/auth";
@ -13,7 +14,7 @@ export const GET = async (event: APIEvent) => {
lucia.createBlankSessionCookie().serialize(),
);
return new Response(null, {
status: 302,
status: httpStatus.FOUND,
headers: { Location: "/" },
});
};