2026-03-22 13:47:34 +08:00
|
|
|
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()
|
2026-04-06 22:18:44 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@router.get('/config')
|
|
|
|
|
async def get_system_config():
|
|
|
|
|
"""Get public system configuration."""
|
|
|
|
|
return SystemService().get_config()
|