fix: 插件API路由统一加面板前缀(/SenSu),解决反代后插件页面空白

This commit is contained in:
qinglong
2026-06-14 20:14:22 +08:00
parent 26d515e080
commit 6c6c88b22a
5 changed files with 26 additions and 14 deletions
+2 -1
View File
@@ -202,7 +202,8 @@ class InternetService:
if not route_path.startswith('/'):
route_path = '/' + route_path
full_path = f"/{plugin_name}{route_path}"
base = self.http_app.get('panel_base_path', '') or ''
full_path = f"{base}/{plugin_name}{route_path}"
# 创建包装器处理权限验证
async def wrapped_handler(request):