Fix JSON formatting and add rewrites
This commit is contained in:
parent
a173a071d0
commit
f838a0ca57
1 changed files with 6 additions and 6 deletions
12
vercel.json
12
vercel.json
|
|
@ -4,9 +4,13 @@
|
|||
"api/**/*.php": {
|
||||
"runtime": "vercel-php@0.9.0"
|
||||
}
|
||||
"cleanUrls": true
|
||||
}
|
||||
},
|
||||
"cleanUrls": true,
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/api/panel",
|
||||
"destination": "/api/panel.php"
|
||||
},
|
||||
{
|
||||
"source": "/api/v1/accounts/login",
|
||||
"destination": "/api/v1/accounts/login.php"
|
||||
|
|
@ -31,7 +35,6 @@
|
|||
"source": "/api/v1/users/check_email",
|
||||
"destination": "/api/v1/users/check_email.php"
|
||||
},
|
||||
|
||||
{
|
||||
"source": "/api/v1/feed/timeline",
|
||||
"destination": "/api/v1/feed/timeline.php"
|
||||
|
|
@ -48,7 +51,6 @@
|
|||
"source": "/api/v1/feed/popular",
|
||||
"destination": "/api/v1/feed/popular.php"
|
||||
},
|
||||
|
||||
{
|
||||
"source": "/api/v1/media/:media_id/like",
|
||||
"destination": "/api/v1/media/like.php?media_id=:media_id"
|
||||
|
|
@ -77,7 +79,6 @@
|
|||
"source": "/api/v1/media/configure",
|
||||
"destination": "/api/v1/media/configure.php"
|
||||
},
|
||||
|
||||
{
|
||||
"source": "/api/v1/users/:user_id/info",
|
||||
"destination": "/api/v1/users/info.php?user_id=:user_id"
|
||||
|
|
@ -94,7 +95,6 @@
|
|||
"source": "/api/v1/friendships/show/:user_id",
|
||||
"destination": "/api/v1/friendships/show.php?user_id=:user_id"
|
||||
},
|
||||
|
||||
{
|
||||
"source": "/api/v1/direct_v2/inbox",
|
||||
"destination": "/api/v1/direct_v2/inbox.php"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue