Fix JSON formatting and add rewrites

This commit is contained in:
Ahyan Z 2026-06-25 17:45:41 +01:00 committed by GitHub
parent a173a071d0
commit f838a0ca57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"