Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AVtheking committed Nov 26, 2023
1 parent f3caf1d commit 68c70ee
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 56 deletions.
2 changes: 1 addition & 1 deletion controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module.exports.teacherCtrl = require("./teacher_controller.js");
module.exports.courseCtrl = require("./course_controller.js");
module.exports.videoCtrl = require("./video_controller.js");
module.exports.userCtrl = require("./user_controller.js");
module.exports.commentCtrl = require("./comment_controlller.js");

module.exports.paymentCtrl = require("./payment_controller.js");
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ app.use(teacherRouter, errorMiddleware);
app.use(courseRouter, errorMiddleware);
app.use(userRouter, errorMiddleware);
app.use(paymentRouter, errorMiddleware);
app.use(commentRouter, errorMiddleware);


const PORT = process.env.PORT || 5000;

Expand Down
12 changes: 0 additions & 12 deletions models/comment.js

This file was deleted.

15 changes: 0 additions & 15 deletions models/enrollment.js

This file was deleted.

14 changes: 0 additions & 14 deletions models/image.js

This file was deleted.

2 changes: 1 addition & 1 deletion models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ module.exports.Video = require("./video");
module.exports.Category = require("./category");
module.exports.Message = require("./message");
module.exports.Review = require("./review");
module.exports.Comment = require("./comment");

module.exports.PopularSearch = require("./popular_search");
10 changes: 0 additions & 10 deletions routes/commentRouter.js

This file was deleted.

2 changes: 0 additions & 2 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ module.exports.authRouter = require("./authRouter");
module.exports.teacherRouter = require("./teacherRouter");
module.exports.courseRouter = require("./courseRouter");
module.exports.userRouter = require("./userRouter");
// module.exports.imageRouter = require("./imageRouter");
module.exports.commentRouter = require("./commentRouter");
module.exports.paymentRouter = require("./paymentRouter");

0 comments on commit 68c70ee

Please sign in to comment.