From f838a0ca577f948cfdd77db1a3348e29fb5223d0 Mon Sep 17 00:00:00 2001 From: Ahyan Z Date: Thu, 25 Jun 2026 17:45:41 +0100 Subject: [PATCH] Fix JSON formatting and add rewrites --- vercel.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vercel.json b/vercel.json index 8a1d992..67e3089 100644 --- a/vercel.json +++ b/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"