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 { User } from "../storage/models/User.ts"; interface Data { user: User; } export const handler: Handlers = { GET(req, ctx) { const cookies = getCookies(req.headers); return ctx.render!({ allowed: cookies.auth === "bar" }); }, }; export default function Home() { const count = useSignal(3); return (
the Fresh logo: a sliced lemon dripping with juice

Welcome to Fresh

Try updating this message in the ./routes/index.tsx file, and refresh.

); }