Skip to content

Commit

Permalink
feat: en translation
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyxdd committed Jul 23, 2024
1 parent 834b362 commit c3f74bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/docs/advanced/Traffic-Stats-API.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Traffic Stats API

If an API secret is set in your configuration, you will need to add the `Authorization` header when making a request.

Example:

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

### GET `/traffic`

This endpoint returns a JSON map of client IDs to their traffic statistics.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/advanced/Traffic-Stats-API.zh.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 流量统计 API

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

请求:

Expand Down

0 comments on commit c3f74bc

Please sign in to comment.