Get proxy configuration
(token: str = Depends(verify_admin_token))
| 1230 | |
| 1231 | @router.get("/api/config/proxy") |
| 1232 | async def get_proxy_config(token: str = Depends(verify_admin_token)): |
| 1233 | """Get proxy configuration""" |
| 1234 | config = await proxy_manager.get_proxy_config() |
| 1235 | return { |
| 1236 | "success": True, |
| 1237 | "config": { |
| 1238 | "enabled": config.enabled, |
| 1239 | "proxy_url": config.proxy_url, |
| 1240 | "media_proxy_enabled": config.media_proxy_enabled, |
| 1241 | "media_proxy_url": config.media_proxy_url |
| 1242 | } |
| 1243 | } |
| 1244 | |
| 1245 | |
| 1246 | @router.get("/api/proxy/config") |
nothing calls this directly
no test coverage detected