SetRewriteLists
批量为多个网站设置伪静态模板文件。
- 路由:
POST /site - action:
SetRewriteLists
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 SetRewriteLists |
| sites | 是 | String | JSON 数组,网站列表 [{"name":"site1"},...] |
| rewrite_data | 是 | String | 伪静态模板名称 |
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| - | Array | 设置结果列表,空数组表示无操作 |
示例
请求
POST /site HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded
action=SetRewriteLists&sites=[]&rewrite_data=
响应
[]