Skip to content

Commit

Permalink
docs: 增加关于接口鉴权的描述文字
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Feb 26, 2023
1 parent 900ca4c commit 8eda958
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/ref/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ icon: http
举个例子,你可以通过 GET /api/public/article/:id ,获取置顶文章的 JSON 内容。

你可以点击这个链接看一下效果: [https://blog-demo.mereith.com/api/public/article/28](https://blog-demo.mereith.com/api/public/article/28)

## 关于鉴权的接口

所有需要鉴权的接口是通过请求头中 `token` 字段鉴权的,可以复制登录后台后的请求头中的 `token` 来使用鉴权 api,有效期和登录过期时间相同,可通过后台中的高级设置调整过期时间。

0 comments on commit 8eda958

Please sign in to comment.