mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
fix plugin file api
This commit is contained in:
@@ -324,7 +324,7 @@ def reset_plugin(plugin_id: str,
|
|||||||
|
|
||||||
|
|
||||||
@router.get("/file/{plugin_id}/{filepath:path}", summary="获取插件静态文件")
|
@router.get("/file/{plugin_id}/{filepath:path}", summary="获取插件静态文件")
|
||||||
def plugin_static_file(plugin_id: str, filepath: str, _: Annotated[str, Depends(verify_apitoken)]):
|
def plugin_static_file(plugin_id: str, filepath: str):
|
||||||
"""
|
"""
|
||||||
获取插件静态文件
|
获取插件静态文件
|
||||||
"""
|
"""
|
||||||
|
|||||||
+1
-1
@@ -541,7 +541,7 @@ class PluginManager(metaclass=Singleton):
|
|||||||
dist_path = dist_path[1:]
|
dist_path = dist_path[1:]
|
||||||
if dist_path.endswith("/"):
|
if dist_path.endswith("/"):
|
||||||
dist_path = dist_path[:-1]
|
dist_path = dist_path[:-1]
|
||||||
return f"/plugin/file/{plugin_id.lower()}/{dist_path}/remoteEntry.js?token={settings.API_TOKEN}"
|
return f"/plugin/file/{plugin_id.lower()}/{dist_path}/remoteEntry.js"
|
||||||
|
|
||||||
def get_plugin_remotes(self, pid: Optional[str] = None) -> List[Dict[str, Any]]:
|
def get_plugin_remotes(self, pid: Optional[str] = None) -> List[Dict[str, Any]]:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user