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