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; diff --git a/app/routes/turorial.routes.js b/app/routes/turorial.routes.js index 238f1e0..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 + // Retrieve all Tutorials data april 2026 router.get("/", tutorials.findAll); // Retrieve all published Tutorials