API 调用地址
{域名地址}/api/log
说明:{域名地址} 需要替换成你的域名地址,如 https://www.anqicms.com/api/log
html 模板默认会注入。如果是 next.js 前端,则需要自行调用。
调用方法
GET
请求参数
| 字段名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| action | string | 否 | 记录类型,支持的值:views: 文档访问,会统计文档访问量,other:其他值 |
| id | int | 否 | 文档ID |
| type | string | 否 | 记录类型,支持的值:archive: action=views 时需要 |
| code | int | 是 | http状态码 |
| path | string | 是 | 访问路径 |
返回参数
无
请求数据示例
get https://www.anqicms.com/api/log?action=views&id=1&type=archive&code=200&path=/article/1.html