Create quoteRoutes.js file inside the route folder

Bring in express and express router into the quoteRoutes.js file

const express = require("express");
const router = express.Router();

Export the router

module.exports = router;

Set up the get route inside the quoteRoutes.js file

router.get("/", (req, res) => {
  res.status(200).json({ message: "Get quotes" });

Modify server.js to use the get route

app.use("/api/quotes", require("./routes/quoteRoutes"));

Set up the post route inside the quoteRoutes.js file"/", (req, res) => {
  res.status(200).json({ message: "Create quote" });

Set up the update route inside the quoteRoutes.js file

router.put("/:id", (req, res) => {
  res.status(200).json({ message: `Update quote, ${}` });

Set up the delete route inside the quoteRoutes.js file

router.delete("/:id", (req, res) => {
  res.status(200).json({ message: `Delete quote, ${}` });

Test the get route with Postman getRoute

Test the post route with Postman postRoute

Test the update route with Postman updateRoute

Test the delete route with Postman deleteRoute