mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-30 04:30:36 +00:00
restart
This commit is contained in:
parent
357909c16a
commit
961dbc405a
7 changed files with 104 additions and 21 deletions
9
python/api/restart.py
Normal file
9
python/api/restart.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from python.helpers.api import ApiHandler
|
||||
from flask import Request, Response
|
||||
|
||||
from python.helpers import process
|
||||
|
||||
class Restart(ApiHandler):
|
||||
async def process(self, input: dict, request: Request) -> dict | Response:
|
||||
process.reload()
|
||||
return Response(status=200)
|
||||
Loading…
Add table
Add a link
Reference in a new issue