Skip to content

Commit

Permalink
respond also to POST requests
Browse files Browse the repository at this point in the history
  • Loading branch information
canbax committed Aug 29, 2023
1 parent b49c293 commit a7701aa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ app.get("/api/cities", getCitiesOfRegion);
app.get("/api/coordinates", getCoordinateData);
app.get("/api/place", getPlaceData);
app.get("/api/ip", getIPAdress);
app.post("/api/timesFromCoordinates", getTimesFromCoordinates);
app.post("/api/timesFromPlace", getTimesFromPlace);
app.post("/api/countries", getCountries);
app.post("/api/regions", getRegionsOfCountry);
app.post("/api/cities", getCitiesOfRegion);
app.post("/api/coordinates", getCoordinateData);
app.post("/api/place", getPlaceData);
app.post("/api/ip", getIPAdress);

const PORT = process.env.PORT || 3000;
export const httpServer = app.listen(PORT);
Expand Down

1 comment on commit a7701aa

@vercel
Copy link

@vercel vercel bot commented on a7701aa Aug 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

namaz-vakti-api – ./

namaz-vakti-api-git-main-canbax.vercel.app
namaz-vakti.vercel.app
namaz-vakti-api-canbax.vercel.app

Please sign in to comment.