Update apps.py

This commit is contained in:
qiaofeng1227 2023-03-09 10:29:11 +08:00 committed by GitHub
parent 8bfb38d35b
commit 450380c1cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,11 @@ def install_app(app_name: Optional[str] = None, app_version: Optional[str] = Non
ret = manage.install_app(app_name)
return JSONResponse(content=ret)
@router.get("/process")
def install_app_process(app_name: Optional[str] = None):
ret = manage.install_app_process(app_name)
return JSONResponse(content=ret)
@router.get("/start")
def start_app(app_name: Optional[str] = None):
ret = manage.start_app(app_name)