changed login and logout to adapt to domain and added ToU

This commit is contained in:
Kevin FEDYNA
2025-01-21 22:31:36 +01:00
parent 642d59dcab
commit 85766ffeed
10 changed files with 199 additions and 63 deletions
+5 -4
View File
@@ -2,11 +2,12 @@ import {
getPartialsConfig,
makePartials,
} from "$root/defaults/makePartials.tsx";
import { FreshContext } from "$fresh/server.ts";
import { State } from "$root/routes/_middleware.ts";
type NotesIndexProps = Record<string | number | symbol, never>;
export function Index(_props: NotesIndexProps) {
return <a href="notes" f-partial={"notes/partials"}>bip boup</a>;
// deno-lint-ignore require-await
export async function Index(_request: Request, context: FreshContext<State>) {
return <h2>Welcome to {context.state.session?.displayName}.</h2>;
}
export const config = getPartialsConfig();