mirror of
https://github.com/woodchen-ink/Random-Api.git
synced 2025-07-18 14:02:03 +08:00
增加更新说明
This commit is contained in:
parent
ede12c0f4f
commit
340ff4f091
11
README.md
11
README.md
@ -2,16 +2,12 @@
|
||||
|
||||
**请给个star,谢谢**
|
||||
|
||||
## 完整说明请查看:
|
||||
## 部署/更新/接口说明请查看:
|
||||
|
||||
[https://random-api.woodchen.ink](https://random-api.woodchen.ink)
|
||||
|
||||
> 我的博客说明:[https://woodchen.ink/archives/1705367469203](https://woodchen.ink/archives/1705367469203)
|
||||
|
||||
使用cloudflare worker配合github网页发布功能,实现获取path与csv_path关系,从 `url.csv` 文件中给出的链接来实现一个随机文件
|
||||
|
||||
不仅可以放图片,还能放文本文件,视频,等等
|
||||
|
||||
|
||||
## 感谢
|
||||
|
||||
@ -21,11 +17,6 @@
|
||||
|
||||
* https://t.mwm.moe/
|
||||
|
||||
|
||||
## 自行部署
|
||||
|
||||
1. cloudflare 新建一个worker,把 worker.js文件的代码粘贴进去,保存(可以修改为自己的链接)
|
||||
2. 访问即可
|
||||
|
||||
## 赞赏
|
||||
|
||||
|
34
index.md
34
index.md
@ -1,14 +1,5 @@
|
||||
# Random-Api 随机文件API
|
||||
|
||||
github地址: [https://github.com/woodchen-ink/Random-Api](https://github.com/woodchen-ink/Random-Api)
|
||||
|
||||
|
||||
> 我的博客说明:[https://woodchen.ink/archives/1705367469203](https://woodchen.ink/archives/1705367469203)
|
||||
|
||||
使用cloudflare worker配合github网页发布功能,实现获取path与csv_path关系,从 `url.csv` 文件中给出的链接来实现一个随机文件
|
||||
|
||||
不仅可以放图片,还能放文本文件,视频,等等
|
||||
|
||||
## 接口
|
||||
|
||||
| 类型 | 种类 | 请求地址 |
|
||||
@ -19,6 +10,26 @@ github地址: [https://github.com/woodchen-ink/Random-Api](https://github.com/
|
||||
| 视频 | 所有 | [https://random-api.woodchen.ink/video/all](https://random-api.woodchen.ink/video/all) |
|
||||
|
||||
|
||||
## 原理
|
||||
|
||||
> github地址: [https://github.com/woodchen-ink/Random-Api](https://github.com/woodchen-ink/Random-Api)
|
||||
> 我的博客说明:[https://woodchen.ink/archives/1705367469203](https://woodchen.ink/archives/1705367469203)
|
||||
|
||||
使用cloudflare worker配合github,实现获取path与csv_path关系,从 `url.csv` 文件中给出的链接来实现一个随机文件
|
||||
|
||||
不仅可以放图片,还能放文本文件,视频,等等
|
||||
|
||||
## 自行部署
|
||||
|
||||
1. cloudflare 新建一个worker,把 worker.js文件的代码粘贴进去,保存(可以修改为自己的链接)
|
||||
2. 访问即可
|
||||
|
||||
## 更新说明
|
||||
|
||||
1. 只需要git修改github上文件即可,不需要修改worker.js文件
|
||||
2. 有时候会有点缓存,生效要等一会儿
|
||||
|
||||
|
||||
## 感谢
|
||||
|
||||
大部分图片来自网络分享的API
|
||||
@ -27,10 +38,7 @@ github地址: [https://github.com/woodchen-ink/Random-Api](https://github.com/
|
||||
|
||||
* https://t.mwm.moe/
|
||||
|
||||
## 自行部署
|
||||
|
||||
1. cloudflare 新建一个worker,把 worker.js文件的代码粘贴进去,保存(可以修改为自己的链接)
|
||||
2. 访问即可
|
||||
|
||||
|
||||
## 赞赏
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user