fix(docs): StaticFiles-Mount-Pfad korrigieren (static statt app/static)
Vorheriger Commit hat nur die Dateien verschoben, main.py zeigte noch auf den alten Pfad app/static. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015Ahyx6D3r7G1EuAc42nezn
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ app.add_exception_handler(RateLimitExceeded, _rate_limit_exceeded_handler)
|
||||
# Swagger/ReDoc-Assets lokal ausliefern statt von cdn.jsdelivr.net – Netzwerke ohne
|
||||
# CDN-Zugriff (Firewall/Proxy) zeigten sonst eine leere /docs-Seite.
|
||||
if not settings.is_production:
|
||||
app.mount("/static", StaticFiles(directory="app/static"), name="static")
|
||||
app.mount("/static", StaticFiles(directory="static"), name="static")
|
||||
|
||||
@app.get("/docs", include_in_schema=False)
|
||||
async def custom_swagger_ui_html():
|
||||
|
||||
Reference in New Issue
Block a user