fix 反向代理图片显示问题,url改为查询参数避免双斜杠的优化

This commit is contained in:
aodi 2024-04-19 11:24:11 +08:00
parent f6222122c0
commit fb0018dda6

View File

@ -26,7 +26,7 @@ from version import APP_VERSION
router = APIRouter()
@router.get("/img/{proxy}/{imgurl:path}", summary="图片代理")
@router.get("/img/{proxy}", summary="图片代理")
def get_img(imgurl: str, proxy: bool = False) -> Any:
"""
通过图片代理使用代理服务器