get_site_types
获取面板中网站的分类列表。
- 路由:
POST /site - action:
get_site_types
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 get_site_types |
输出参数
返回数组,每项:
| 参数名称 | 类型 | 描述 |
|---|---|---|
| id | Integer | 分类 ID,0 = 默认分类,-2 = 已停止网站 |
| name | String | 分类名称 |
示例
请求
POST /site HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded
request_time=1700000000&request_token=xxx&action=get_site_types
响应
[
{"id": 0, "name": "默认分类"},
{"id": -2, "name": "已停止网站"}
]