Files
NetMapper2026/agent/app/routers/runtime.py
T
Perplexity Bot 69124b31f1
CI / basic-check (push) Has been cancelled
Add Pydantic models and FastAPI router structure for agent and backend
2026-08-04 18:55:54 +00:00

14 lines
370 B
Python

from fastapi import APIRouter
from app.models import RuntimeResponse
from app.services.runtime_probe import build_runtime
from app.services.systemd_manager import SystemdManager
router = APIRouter(tags=['runtime'])
manager = SystemdManager()
@router.get('/runtime', response_model=RuntimeResponse)
def runtime() -> RuntimeResponse:
return build_runtime(manager)