MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / get_admin_config

Function get_admin_config

src/api/admin.py:1549–1558  ·  view source on GitHub ↗

Get admin configuration

(token: str = Depends(verify_admin_token))

Source from the content-addressed store, hash-verified

1547
1548@router.get("/api/admin/config")
1549async def get_admin_config(token: str = Depends(verify_admin_token)):
1550 """Get admin configuration"""
1551 admin_config = await db.get_admin_config()
1552
1553 return {
1554 "admin_username": admin_config.username,
1555 "api_key": admin_config.api_key,
1556 "error_ban_threshold": admin_config.error_ban_threshold,
1557 "debug_enabled": config.debug_enabled # Return actual debug status
1558 }
1559
1560
1561@router.post("/api/admin/config")

Callers

nothing calls this directly

Calls 1

get_admin_configMethod · 0.80

Tested by

no test coverage detected