Make some basic checking /wo the database for now.

This commit is contained in:
yuanhau 2025-05-17 21:08:58 +08:00
parent a89fbd4fd7
commit 383ad2e467
3 changed files with 17 additions and 5 deletions

View file

@ -0,0 +1,9 @@
// This should be hooked up to a database soon.
import postgres from "~/server/components/postgres";
export default defineEventHandler(async (event) => {
const loginCookie = getCookie(event, "session");
return {
auth: "true",
user: "testing",
};
});