Self-hosted knowledge management for SMEs: a split-screen Markdown editor whose sections an LLM refines while you write, and RAG question answering over the documents that result. FastAPI + Postgres/pgvector on the back, SvelteKit on the front, everything OpenAI-compatible and self-hostable. Squashed into a single commit; the development history stays local. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CA43ZJda8Rbp2hKXNy8f6b
30 lines
704 B
Python
30 lines
704 B
Python
from fastapi import APIRouter
|
|
|
|
from app.api import (
|
|
account,
|
|
admin,
|
|
auth,
|
|
authoring,
|
|
conversations,
|
|
departments,
|
|
documents,
|
|
people,
|
|
templates,
|
|
)
|
|
|
|
api_router = APIRouter(prefix="/api")
|
|
api_router.include_router(auth.router)
|
|
api_router.include_router(account.router)
|
|
api_router.include_router(admin.router)
|
|
api_router.include_router(conversations.router)
|
|
api_router.include_router(departments.router)
|
|
api_router.include_router(documents.router)
|
|
api_router.include_router(authoring.router)
|
|
api_router.include_router(people.router)
|
|
api_router.include_router(templates.router)
|
|
|
|
|
|
@api_router.get("/health")
|
|
async def health() -> dict[str, str]:
|
|
return {"status": "ok"}
|