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
13 lines
367 B
Python
13 lines
367 B
Python
"""The one router constructor the authoring modules share.
|
|
|
|
The prefix is `/documents`: authoring acts ON a document the caller owns, so
|
|
its endpoints live under the document they belong to rather than in a
|
|
namespace of their own.
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
|
|
def authoring_router() -> APIRouter:
|
|
return APIRouter(prefix="/documents", tags=["authoring"])
|