Update apps.py

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

View File

@ -17,7 +17,7 @@ def list_my_apps():
return JSONResponse(content=list) return JSONResponse(content=list)
@router.get("/install") @router.get("/install")
def install_app(app_name: Optional[str] = None): def install_app(app_name: Optional[str] = None, app_version: Optional[str] = None):
ret = manage.install_app(app_name) ret = manage.install_app(app_name)
return JSONResponse(content=ret) return JSONResponse(content=ret)