This commit is contained in:
k
2026-09-21 23:28:31 +02:00
parent 0810ad4166
commit 0ee5a3521a
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ frontend (same origin, no CORS). Persistence is SQLite via Bun's native
browser ──► Bun.serve (src/index.ts) browser ──► Bun.serve (src/index.ts)
├─ /api/* ──► auth gate ──► routes ──► db.ts ──► kisassistant.db ├─ /api/* ──► auth gate ──► routes ──► db.ts ──► kisassistant.db
│ └─────► DriverRegistry ──► ollama / APIs │ └─────► DriverRegistry ──► ollama / APIs
└─ /* ──► static files + SPA fallback (index.html, covers /share/:id) └─ /* ──► static files + SPA fallback (index.html, covers /share/:id and /chat/:id)
``` ```
## Request flow: chat ## Request flow: chat
+4
View File
@@ -15,6 +15,10 @@ No router library — a tiny history wrapper (`lib/route.ts`: `navigate()`,
- `/register` — full-page self-registration (`RegisterPage.tsx`; key shown - `/register` — full-page self-registration (`RegisterPage.tsx`; key shown
once, then hands username+key to `/login` via `sessionStorage`). No splash. once, then hands username+key to `/login` via `sessionStorage`). No splash.
- `/chat` — the platform itself (auth required; boots behind the splash). - `/chat` — the platform itself (auth required; boots behind the splash).
Bare `/chat` is the empty composer (new chat, created lazily on first send).
- `/chat/:id` — one conversation page (deep-linkable, back/forward supported).
Selecting a chat navigates there; unknown ids bounce back to `/chat`.
Archived chats are viewed read-only on bare `/chat` (no per-id URL).
- `/` — redirects to `/chat` when logged in, `/login` otherwise (placeholder - `/` — redirects to `/chat` when logged in, `/login` otherwise (placeholder
for a future landing page). for a future landing page).
- Public routes (unchanged): `/share/:publicId`, `/reset/:token`, - Public routes (unchanged): `/share/:publicId`, `/reset/:token`,