Skip to content

Commit

Permalink
Merge pull request #85 from AVtheking/course_Ankit
Browse files Browse the repository at this point in the history
fix video streaming bug
  • Loading branch information
AVtheking authored Nov 23, 2023
2 parents 142365e + df68ec9 commit df63a3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/video_controller.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { ErrorHandler } = require("../middlewares/error");
const fs = require("fs");
const { Course } = require("../models");
const { Course, User } = require("../models");
const { courseIdSchema } = require("../utils/validator");

const videoCtrl = {
Expand Down
2 changes: 1 addition & 1 deletion routes/courseRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ courseRouter.get(
courseCtrl.getCoursesByCategory
);
courseRouter.get("/getCourseById/:courseId", auth, courseCtrl.getCourseByid);
courseRouter.get("/video/:courseId/lecture/:lectureId", videoCtrl.streamVideo);
courseRouter.get("/video/:courseId/lecture/:lectureId", auth,videoCtrl.streamVideo);
courseRouter.get("/getCategoriesName", auth, courseCtrl.getCategoriesName);
courseRouter.get("/getCategoriesData", auth, courseCtrl.getCategoriesData);
courseRouter.get("/get-reviews/:courseId", auth, courseCtrl.getReviews);
Expand Down

0 comments on commit df63a3e

Please sign in to comment.