优化local_app_installer.py
This commit is contained in:
parent
ed4e11872b
commit
9f712cf2f6
@ -1009,23 +1009,6 @@ async def get_app_detail(app_name: str):
|
|||||||
raise HTTPException(status_code=500, detail=f"获取应用详情失败: {str(e)}")
|
raise HTTPException(status_code=500, detail=f"获取应用详情失败: {str(e)}")
|
||||||
|
|
||||||
|
|
||||||
@router.get("/jingrow/app-marketplace-meta")
|
|
||||||
async def get_app_meta():
|
|
||||||
"""获取Local App元数据"""
|
|
||||||
try:
|
|
||||||
url = f"{get_jingrow_cloud_url()}/api/action/jcloud.api.local_app.get_local_app_meta"
|
|
||||||
|
|
||||||
headers = get_jingrow_cloud_api_headers()
|
|
||||||
response = requests.get(url, headers=headers, timeout=20)
|
|
||||||
|
|
||||||
if response.status_code == 200:
|
|
||||||
data = response.json()
|
|
||||||
return data.get('message')
|
|
||||||
else:
|
|
||||||
raise HTTPException(status_code=500, detail="获取元数据失败")
|
|
||||||
except Exception as e:
|
|
||||||
raise HTTPException(status_code=500, detail=f"获取元数据失败: {str(e)}")
|
|
||||||
|
|
||||||
|
|
||||||
@router.get("/jingrow/my-published-apps")
|
@router.get("/jingrow/my-published-apps")
|
||||||
async def get_my_published_apps(
|
async def get_my_published_apps(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user