mirror of
https://github.com/GithubOrgProjectPiza/server.git
synced 2026-09-04 08:36:10 +02:00
Fix routes
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user