diff --git a/final_project/router/general.js b/final_project/router/general.js index 9eb0ac1a91..00cef20034 100644 --- a/final_project/router/general.js +++ b/final_project/router/general.js @@ -11,11 +11,11 @@ public_users.post("/register", (req,res) => { }); // Get the book list available in the shop -public_users.get('/',function (req, res) { - //Write your code here - return res.status(300).json({message: "Yet to be implemented"}); +public_users.get("/", function (req, res) { + return res.status(200).json(books); }); + // Get book details based on ISBN public_users.get('/isbn/:isbn',function (req, res) { //Write your code here