GetIndex
获取指定网站的默认文档(首页文件)列表。
- 路由:
POST /site - action:
GetIndex - 返回类型:String(非 JSON)
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 GetIndex |
| id | 是 | Integer | 网站 ID |
网站 ID 可通过
/data接口查询sites表获得:action=getData&table=sites&type=-1
输出参数
返回逗号分隔的字符串,按优先级排列默认文档文件名。
示例
请求
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=GetIndex&id=1
响应
index.php,index.html,index.htm,default.php,default.htm,default.html