From 340ff4f09144ff1c3eb3ee4eb04e9378462fc41e Mon Sep 17 00:00:00 2001 From: woodchen Date: Fri, 19 Jan 2024 14:32:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9B=B4=E6=96=B0=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 +---------- index.md | 34 +++++++++++++++++++++------------- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index be44d49..cb522ae 100644 --- a/README.md +++ b/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. 访问即可 ## 赞赏 diff --git a/index.md b/index.md index 6b579ff..fb2be6c 100644 --- a/index.md +++ b/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. 访问即可 + ## 赞赏