JS 插件

插件 API 转发 catch-all(动态路由)

Changed on

接受任意 HTTP 方法,分发到插件 static 兜底、入站 WebSocket upgrade(调用 onWebSocket),或转发到 QuickJS 沙盒中的插件代码。{entryPath} 和子路径均由运行时决定,OpenAPI 仅作占位。需要 BearerAuth。 支持 UPnP 事件订阅的 SUBSCRIBE/UNSUBSCRIBE 扩展方法(OpenAPI 2 无对应方法,仅在此说明)。插件 publicPaths 中声明的路径免 JWT,由插件自行校验协议访问范围。

put/jsplugin/{entryPath}/{path}

Request

  • Base URL: https://localhost:58091/api/v1
  • URL: https://localhost:58091/api/v1/jsplugin/{entryPath}/{path}
  • Auth: API key in header Authorization

Path parameters

entryPathstring required

插件入口标识(运行时动态)

Headers

X-Plugin-Timeout-Msinteger

可选:放宽本次插件调用的超时(毫秒),宿主 clamp 到 [30000, 300000]。慢端点(如 yt-dlp 展开歌单)用于避免默认 30s 超时

Response

插件自定义响应

object required

Changes