mirror of
https://github.com/GithubOrgProjectPiza/server.git
synced 2026-09-06 07:36:01 +02:00
Add "get all" endpoints
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import express from "express";
|
||||
import { addPizza, deletePizza, getPizza, updatePizza } from "../controller/pizzas.controller";
|
||||
import { getPizzas, addPizza, deletePizza, getPizza, updatePizza } from "../controller/pizzas.controller";
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.get("/", getPizzas);
|
||||
router.get("/:id", getPizza);
|
||||
router.post("/", addPizza);
|
||||
router.put("/:id", updatePizza);
|
||||
|
||||
Reference in New Issue
Block a user