Browse Source

Update apps.py

qiaofeng1227 2 years ago
parent
commit
8a19d9c3bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      appmanage/api/v1/routers/apps.py

+ 1 - 1
appmanage/api/v1/routers/apps.py

@@ -11,7 +11,7 @@ from api.utils import shell_execute
 
 router = APIRouter()
 
-@router.get("")
+@router.api_route("", methods=["GET", "POST"])
 def list_my_apps():
     list = manage.get_my_app()
     return JSONResponse(content=list)