Skip to content

Commit 3d6bbbe

Browse files
committed
Update the build plugin api params
1 parent 1a77341 commit 3d6bbbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/app/admin/api/v1/sys/plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33
from typing import Annotated, Any
44

5-
from fastapi import APIRouter, Depends, File, UploadFile
5+
from fastapi import APIRouter, Depends, File, UploadFile, Path
66
from fastapi.params import Query
77
from starlette.responses import StreamingResponse
88

@@ -84,14 +84,14 @@ async def update_plugin_status(plugin: Annotated[str, Query(description='插件
8484

8585

8686
@router.get(
87-
'/zip',
87+
'/zip/{plugin}',
8888
summary='打包插件',
8989
dependencies=[
9090
Depends(RequestPermission('sys:plugin:zip')),
9191
DependsRBAC,
9292
],
9393
)
94-
async def build_plugin(plugin: Annotated[str, Query(description='插件名称')]) -> StreamingResponse:
94+
async def build_plugin(plugin: Annotated[str, Path(description='插件名称')]) -> StreamingResponse:
9595
bio = await plugin_service.build(plugin=plugin)
9696
bio.seek(0)
9797
return StreamingResponse(

0 commit comments

Comments
 (0)