update patyhs
This commit is contained in:
parent
c70202e5d1
commit
0458ad4948
7 changed files with 9 additions and 13 deletions
|
@ -1,17 +1,5 @@
|
|||
import { useSignal } from "@preact/signals";
|
||||
import Counter from "../islands/Counter.tsx";
|
||||
import { Handlers } from "$fresh/server.ts";
|
||||
import { getCookies } from "$std/http/cookie.ts";
|
||||
import { db, User } from "../storage/store.ts";
|
||||
import { auth } from "../auth/auth.ts";
|
||||
|
||||
export const handler: Handlers = {
|
||||
GET(req, ctx) {
|
||||
const cookies = getCookies(req.headers);
|
||||
const user = get_session_user(cookies);
|
||||
return ctx.render!({ user });
|
||||
},
|
||||
};
|
||||
|
||||
export default function Home() {
|
||||
const count = useSignal(3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue