mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
Make some basic checking /wo the database for now.
This commit is contained in:
parent
a89fbd4fd7
commit
383ad2e467
3 changed files with 17 additions and 5 deletions
9
server/api/user/checkcookie.ts
Normal file
9
server/api/user/checkcookie.ts
Normal 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",
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue