Skip to content

Commit

Permalink
更新vercel.json,修复vercel无法获取部分接口的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hiltay committed Jun 21, 2022
1 parent 3f6f47d commit e92cca0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
最近改动:
- 添加mongodb workflow
- randomfriend和randompost两个接口支持随机N篇功能
- 新增lostfriends接口,用于快速查询失联友链
- 新增friendstatus接口,用于快速查询友链状态
- 修复vercel无法获取部分接口的问题
- 修复leancloud过期文章清理不生效的问题
- 添加自定义日志信息
- 修复leancloud接口中统计的数量和实际数量不同的问题
Expand Down
11 changes: 1 addition & 10 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
{
"version": 2,
"public": true,
"builds": [{ "src": "api/main.py", "use": "@vercel/python" }],
"routes": [
{ "src": "/all", "dest": "api/main.py" },
{ "src": "/friend", "dest": "api/main.py" },
{ "src": "/randomfriend", "dest": "api/main.py" },
{ "src": "/randompost", "dest": "api/main.py" },
{ "src": "/post", "dest": "api/main.py" },
{ "src": "/postjson", "dest": "api/main.py" },
{ "src": "/docs", "dest": "api/main.py" },
{ "src": "/openapi.json", "dest": "api/main.py" },
{ "src": "/version", "dest": "api/main.py" }
{ "src": "/.*", "dest": "api/main.py" }
]
}

0 comments on commit e92cca0

Please sign in to comment.