Skip to content

Commit

Permalink
Complete bookRatings Router.
Browse files Browse the repository at this point in the history
  • Loading branch information
php20ai committed Aug 28, 2024
1 parent ceb00d6 commit b774a03
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions routes/bookRatingsRouter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const { Router } = require("express");

const bookRatingsController = require("../controllers/bookRatings.js");

const bookRatingsRouter = Router();

// create new book rating:
bookRatingsRouter.post("/", bookRatingsController.create);

// find book rating by book_id:
bookRatingsRouter.get("/:book_id", bookRatingsController.show);

module.exports = bookRatingsRouter;

0 comments on commit b774a03

Please sign in to comment.