Skip to content

webinfo ​

为 WebUI 保存一份 JSON 数据,例如客户端别名。一般不需要自己使用。

类型:数据

示例 ​

yaml
- tag: clientname
  type: webinfo
  args:
    file: webinfo/clientname.json

参数 ​

参数说明
fileJSON 文件,必填;不存在或为空时视为 {}

接口 ​

接口用途
GET /plugins/<tag>读取
PUT /plugins/<tag>整体替换并保存

定义了 tag 为 clientname 的 webinfo 时,WebUI 启用客户端别名功能。

基于 GPL-3.0 发布