fix: 插件API路由统一加面板前缀(/SenSu),解决反代后插件页面空白
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user