Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 0a3bb31

Browse files
committed
creating course functionality
1 parent a035f51 commit 0a3bb31

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

controllers/course.controllers.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ const Course = require("../models/course.model");
33

44
exports.postCreateCourseController = (req, res) => {
55
const name = req.body.courseTitle;
6-
console.log(req.body);
76
const description = req.body.courseDescription;
87
const courseParts = req.body.courseParts;
9-
console.log(courseParts, description, name);
108
Course.findOne({
119
name,
1210
}).then((course) => {

0 commit comments

Comments
 (0)