# All files / Backend/routes coursepage.js

100% Statements 11/11
100% Branches 0/0
100% Functions 0/0
100% Lines 11/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    164x
    4x

    4x
    4x

    4x
    4x
    4x
    4x
    4x
    4x

    4x
     const express = require('express');
    const router= express.Router();

    const courseController =require('../controllers/coursepage');
    const Auth = require('../Authentication/is-auth');

    router.get('/course/:courseName/:courseId',Auth.authentication,courseController.CoursePage);
    router.post('/home/:courseId/:courseName',Auth.authentication,courseController.Bookmark);
    router.get('/users/:userName/:userId',Auth.authentication,courseController.ShowBookmark);
    router.post('/unbookmark',Auth.authentication,courseController.unbookmark);
    router.put('/rating',Auth.authentication,courseController.rating);
    router.get('/pdf/download/:courseId',courseController.pdf);

    module.exports = router;