From fc9549b1728b7c7a76ced90cb07fd2ec03830cb0 Mon Sep 17 00:00:00 2001 From: sid Date: Mon, 6 Apr 2026 21:09:35 +0530 Subject: [PATCH 1/3] change comment --- app/controllers/tutorial.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/tutorial.controller.js b/app/controllers/tutorial.controller.js index ca7d245..cea54bd 100644 --- a/app/controllers/tutorial.controller.js +++ b/app/controllers/tutorial.controller.js @@ -3,7 +3,7 @@ const Tutorial = db.tutorials; // Create and Save a new Tutorial exports.create = (req, res) => { - // Validate request + // Validate request body if (!req.body.title) { res.status(400).send({ message: "Content can not be empty!" }); return; From 643f8a9650b6ae07fbbdc7ea9d5432b55d13f231 Mon Sep 17 00:00:00 2001 From: sid Date: Mon, 6 Apr 2026 21:27:37 +0530 Subject: [PATCH 2/3] cheange in routs --- app/routes/turorial.routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/turorial.routes.js b/app/routes/turorial.routes.js index 238f1e0..e6eb672 100644 --- a/app/routes/turorial.routes.js +++ b/app/routes/turorial.routes.js @@ -6,7 +6,7 @@ module.exports = app => { // Create a new Tutorial router.post("/", tutorials.create); - // Retrieve all Tutorials + // Retrieve all Tutorials data router.get("/", tutorials.findAll); // Retrieve all published Tutorials From 06e27a9f07c3018b88c75030ea1acf908805daf1 Mon Sep 17 00:00:00 2001 From: sid Date: Mon, 6 Apr 2026 21:53:36 +0530 Subject: [PATCH 3/3] update today date --- app/routes/turorial.routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/turorial.routes.js b/app/routes/turorial.routes.js index e6eb672..1312ebc 100644 --- a/app/routes/turorial.routes.js +++ b/app/routes/turorial.routes.js @@ -6,7 +6,7 @@ module.exports = app => { // Create a new Tutorial router.post("/", tutorials.create); - // Retrieve all Tutorials data + // Retrieve all Tutorials data april 2026 router.get("/", tutorials.findAll); // Retrieve all published Tutorials