fix: Use api_route for HEAD method support in assets proxy

This commit is contained in:
Apple
2025-12-02 08:48:13 -08:00
parent d13115e3b0
commit 62f03f0dad

View File

@@ -325,8 +325,7 @@ async def update_agent_visibility_endpoint(
# Assets & Branding API (Task 042)
# =============================================================================
@router.get("/assets/proxy/{path:path}")
@router.head("/assets/proxy/{path:path}")
@router.api_route("/assets/proxy/{path:path}", methods=["GET", "HEAD"])
async def proxy_asset(path: str, request: Request):
"""
Proxy endpoint for serving MinIO assets.