Get proxy configuration (alias for frontend compatibility)
(token: str = Depends(verify_admin_token))
| 1245 | |
| 1246 | @router.get("/api/proxy/config") |
| 1247 | async def get_proxy_config_alias(token: str = Depends(verify_admin_token)): |
| 1248 | """Get proxy configuration (alias for frontend compatibility)""" |
| 1249 | config = await proxy_manager.get_proxy_config() |
| 1250 | return { |
| 1251 | "proxy_enabled": config.enabled, # Frontend expects proxy_enabled |
| 1252 | "proxy_url": config.proxy_url, |
| 1253 | "media_proxy_enabled": config.media_proxy_enabled, |
| 1254 | "media_proxy_url": config.media_proxy_url |
| 1255 | } |
| 1256 | |
| 1257 | |
| 1258 | @router.post("/api/proxy/config") |
nothing calls this directly
no test coverage detected