mirror of
https://github.com/saltbo/agent-kanban.git
synced 2026-09-19 09:01:47 +08:00
a2fa54a729
Replace the v1 Agent/Machine runtime and CLI architecture with the v2 Resource Server, AMA-backed projections, task lifecycle, session observation, BDD specifications, and a single-package layered codebase. BREAKING CHANGE: remove the v1 CLI, internal Agent/Machine runtime entities, workspace layout, and legacy runtime coordination APIs.
11 lines
502 B
TypeScript
11 lines
502 B
TypeScript
import { beginRealmrootLogin, endRealmrootWebSession, finishRealmrootLogin, readRealmrootWebSession } from "@server/auth/realmroot";
|
|
import type { Env } from "@server/env";
|
|
import type { Hono } from "hono";
|
|
|
|
export function registerAuthRoutes(api: Hono<{ Bindings: Env }>): void {
|
|
api.get("/api/auth/login", beginRealmrootLogin);
|
|
api.get("/api/auth/callback", finishRealmrootLogin);
|
|
api.get("/api/auth/session", readRealmrootWebSession);
|
|
api.post("/api/auth/logout", endRealmrootWebSession);
|
|
}
|