From 8c58e1f08919f71878d34d2b1e205f49ff21fac3 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Wed, 4 May 2022 11:12:15 +0200 Subject: [PATCH] Fix routes --- src/routes/organisations.route.ts | 2 +- src/routes/restaurants.route.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/organisations.route.ts b/src/routes/organisations.route.ts index 9a44d25..d7ff6e4 100644 --- a/src/routes/organisations.route.ts +++ b/src/routes/organisations.route.ts @@ -9,7 +9,7 @@ import { const router = express.Router(); -router.get("/organizations", getOrganizations); +router.get("/", getOrganizations); router.get("/:id", getOrganization); router.post("/", addOrganization); router.put("/:id", updateOrganization); diff --git a/src/routes/restaurants.route.ts b/src/routes/restaurants.route.ts index a2f98fd..6ab38e3 100644 --- a/src/routes/restaurants.route.ts +++ b/src/routes/restaurants.route.ts @@ -9,7 +9,7 @@ import { const router = express.Router(); -router.get("/restaurants", getRestaurants); +router.get("/", getRestaurants); router.get("/:id", getRestaurant); router.post("/", addRestaurant); router.put("/:id", updateRestaurant);