From c5afb4d664e8c28b4731f56780a676ed1ca048a8 Mon Sep 17 00:00:00 2001 From: SivaramPg Date: Mon, 16 Dec 2024 17:11:34 +0530 Subject: [PATCH] refactor: Update API destination paths to use a unified 'all.json' endpoint --- vercel.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vercel.json b/vercel.json index ada00c3..a2a2095 100644 --- a/vercel.json +++ b/vercel.json @@ -3,17 +3,17 @@ "rewrites": [ { "source": "/api", "destination": "/api/root.json" }, - { "source": "/api/people", "destination": "/api/people.json" }, + { "source": "/api/people", "destination": "/api/all.json" }, { "source": "/api/people/:id", "destination": "/api/people/:id.json" }, - { "source": "/api/planets", "destination": "/api/planets.json" }, + { "source": "/api/planets", "destination": "/api/all.json" }, { "source": "/api/planets/:id", "destination": "/api/planets/:id.json" }, - { "source": "/api/films", "destination": "/api/films.json" }, + { "source": "/api/films", "destination": "/api/all.json" }, { "source": "/api/films/:id", "destination": "/api/films/:id.json" }, - { "source": "/api/species", "destination": "/api/species.json" }, + { "source": "/api/species", "destination": "/api/all.json" }, { "source": "/api/species/:id", "destination": "/api/species/:id.json" }, - { "source": "/api/vehicles", "destination": "/api/vehicles.json" }, + { "source": "/api/vehicles", "destination": "/api/all.json" }, { "source": "/api/vehicles/:id", "destination": "/api/vehicles/:id.json" }, - { "source": "/api/starships", "destination": "/api/starships.json" }, + { "source": "/api/starships", "destination": "/api/all.json" }, { "source": "/api/starships/:id", "destination": "/api/starships/:id.json"