update patyhs
This commit is contained in:
parent
c70202e5d1
commit
0458ad4948
7 changed files with 9 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
import { assert } from "$std/assert/assert.ts";
|
||||
import { User } from "../storage/store.ts";
|
||||
import { User } from "../lib/store.ts";
|
||||
import { generate } from "https://deno.land/std@0.224.0/uuid/v1.ts";
|
||||
|
||||
class Authentificator {
|
||||
|
|
|
@ -12,6 +12,10 @@
|
|||
- comment section
|
||||
- new (logged)
|
||||
|
||||
- Account
|
||||
- Login
|
||||
- Register
|
||||
|
||||
## Models
|
||||
|
||||
- User
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
|
||||
import * as $_404 from "./routes/_404.tsx";
|
||||
import * as $_app from "./routes/_app.tsx";
|
||||
import * as $_middleware from "./routes/_middleware.ts";
|
||||
import * as $api_joke from "./routes/api/joke.ts";
|
||||
import * as $feur from "./routes/feur.tsx";
|
||||
import * as $greet_name_ from "./routes/greet/[name].tsx";
|
||||
import * as $index from "./routes/index.tsx";
|
||||
import * as $Counter from "./islands/Counter.tsx";
|
||||
|
@ -14,7 +16,9 @@ const manifest = {
|
|||
routes: {
|
||||
"./routes/_404.tsx": $_404,
|
||||
"./routes/_app.tsx": $_app,
|
||||
"./routes/_middleware.ts": $_middleware,
|
||||
"./routes/api/joke.ts": $api_joke,
|
||||
"./routes/feur.tsx": $feur,
|
||||
"./routes/greet/[name].tsx": $greet_name_,
|
||||
"./routes/index.tsx": $index,
|
||||
},
|
||||
|
|
|
@ -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