update restart endpoint

This commit is contained in:
TCUDIKEL
2025-05-11 19:39:29 +03:00
parent c24bf3a7e6
commit c4bfc5ebe6

View File

@@ -122,7 +122,7 @@ async def health_check():
return {"status": "healthy", "mcphost_alive": mcp_manager._is_alive()}
@app.post("/restart-service")
@app.get("/restart")
async def restart_service():
"""Restart the llm-api-mcphost service using supervisorctl"""
hostname = socket.gethostname()