Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
16 lines
384 B
Python
16 lines
384 B
Python
from fastapi import APIRouter
|
|
from app.services.system_service import SystemService
|
|
|
|
router = APIRouter(prefix='/api/system', tags=['system'])
|
|
|
|
|
|
@router.get('/status')
|
|
async def get_system_status():
|
|
return SystemService().get_status()
|
|
|
|
|
|
@router.get('/config')
|
|
async def get_system_config():
|
|
"""Get public system configuration."""
|
|
return await SystemService().get_config()
|