Skip to content

Commit

Permalink
Update Traffic-Stats-API.zh.md
Browse files Browse the repository at this point in the history
Improve the description of the use of the Traffic Statistics API
  • Loading branch information
n-WN authored Jul 16, 2024
1 parent 2d028ee commit 834b362
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/docs/advanced/Traffic-Stats-API.zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# 流量统计 API

如果配置中加入 API secret,调用时需要在请求头加上 `Authorization` 标头。

请求:

```shell
curl -H 'Authorization: secret' http://ip:port/path
```

### GET `/traffic`

此接口返回一个 JSON map,是每个用户的流量信息。
Expand Down

0 comments on commit 834b362

Please sign in to comment.