Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/tutorial.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion app/routes/turorial.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down