You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(api): 13 routes served at doubled /api/<prefix>/api/... paths — decorators hard-code /api inside routers already mounted under /api #18722
Verified on origin/main 0196c7c234 (umbrella #18717).
api/system.py (router mounted at /system): @router.get("/api/cache/stats") (:985), post("/api/cache/evict") (:1015), post("/api/cache/clear/{cache_name}") (:1045), served at /api/system/api/cache/... (in the generated api.ts, :2564/:2592). system.py:752 also has a normal /cache/stats.
api/knowledge_ownership.py (mounted at /knowledge_base): 5 routes @router.*("/api/knowledge/facts/..."), served at /api/knowledge_base/api/knowledge/facts/....
api/knowledge_grounding.py: APIRouter(prefix="/api") mounted at /knowledge_base, so /api/knowledge_base/api/ground-response, /verify-claim, /kb-conflicts, /kb-stats.
Not checked: whether any client calls the doubled paths (the report found none; SettingsPanel.vue calls /cache/...).
Acceptance criteria
Each route is served at its intended single-prefix path; callers (FE, SLM, generated types) are found by grep and updated, or shown to be absent.
A guard fails on a decorator path or router prefix starting with /api under a router mounted below /api (planted control).
Activity
test(api): new single-prefix paths stay gated and shims leak no body;…
chore(types): regenerate API types for #18796's single-prefix routes …
chore(types): regenerate API types for #18796's single-prefix routes …
test(api): the doubled-prefix guard also flags include_router(..., pr…
test(train): train 33 integration -- literal baseline drops two drain…