Fix routes

This commit is contained in:
Stone_Red
2022-05-04 11:12:15 +02:00
parent 1b162b4f3c
commit 8c58e1f089
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import {
const router = express.Router(); const router = express.Router();
router.get("/organizations", getOrganizations); router.get("/", getOrganizations);
router.get("/:id", getOrganization); router.get("/:id", getOrganization);
router.post("/", addOrganization); router.post("/", addOrganization);
router.put("/:id", updateOrganization); router.put("/:id", updateOrganization);
+1 -1
View File
@@ -9,7 +9,7 @@ import {
const router = express.Router(); const router = express.Router();
router.get("/restaurants", getRestaurants); router.get("/", getRestaurants);
router.get("/:id", getRestaurant); router.get("/:id", getRestaurant);
router.post("/", addRestaurant); router.post("/", addRestaurant);
router.put("/:id", updateRestaurant); router.put("/:id", updateRestaurant);