Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望能提供源码,方便自定义图床上传页面 #138

Open
DJChanahCJD opened this issue Jun 14, 2024 · 2 comments
Open

希望能提供源码,方便自定义图床上传页面 #138

DJChanahCJD opened this issue Jun 14, 2024 · 2 comments

Comments

@DJChanahCJD
Copy link

No description provided.

@woshichenghaibo
Copy link

源代码是有,但是冗余特别大,我找不到要修改的地方

@cf-pages
Copy link
Owner

cf-pages commented Jul 4, 2024

很抱歉我这边也没上传页面的源代码

上传页面的源码来自@jue, 可参考issue #36

但其实如果需要构建新的上传页面的话,其实前端只调用了两个接口,你可以根据下面的接口文档自行实现前端页面

api/bing/wallpaper 必应每日图片接口

请求说明

该请求是向指定API端点发出POST请求,以获取必应壁纸数据。

请求方法

POST

接口示例URL

https://example.com/api/bing/wallpaper

请求数据Body

{
  "n": 5
}

n代表需要获取的图片数量

/upload 上传图片接口

该请求是向指定API端点发出POST请求,以上传图片文件。

请求方法

POST

示例URL

https://example.com/upload

请求数据

form-data; name="file"; filename="example.png"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants