# All files / Backend/routes homepage.js

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

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
     const express = require('express');
    const router= express.Router();

    const homeController =require('../controllers/homepage');
    const Auth = require('../Authentication/is-auth');

    router.get('/home/allCourses',homeController.allCourses);
    router.get('/home/:course',homeController.fetchCourses);
    router.post('/home/:course',Auth.authentication,homeController.preferenceCourses);
    router.post('/home/interests',Auth.authentication,homeController.getPreferences);

    module.exports = router;