21 lines
699 B
Python
21 lines
699 B
Python
from __future__ import annotations
|
|
|
|
from fastapi import APIRouter, Depends
|
|
|
|
from auth import require_auth
|
|
import placeholder_mvp # noqa: F401
|
|
import placeholder_system # noqa: F401
|
|
from placeholders import list_placeholders
|
|
from privacy_placeholders import catalog as privacy_catalog
|
|
|
|
router = APIRouter(prefix="/api/placeholders", tags=["placeholders"])
|
|
|
|
|
|
@router.get("")
|
|
def list_all_placeholders(session: dict = Depends(require_auth)):
|
|
return {
|
|
"context": list_placeholders(),
|
|
"privacy": privacy_catalog(),
|
|
"note": "Templates dürfen nur registrierte {{key}} und [[TOKEN]] enthalten. Fachliche Keys kommen später als Registry-Einträge, nicht als Freitext.",
|
|
}
|