Skip to content

Commit

Permalink
refactor: Update API destination paths to use a unified 'all.json' en…
Browse files Browse the repository at this point in the history
…dpoint
  • Loading branch information
SivaramPg committed Dec 16, 2024
1 parent 08e83e8 commit c5afb4d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c5afb4d

Please sign in to comment.