text: const express = require('express');
  const controller = require('../controllers/student');
  const { requireAuth, forwardAuth } = require('../middlewares/studentAuth');
  
  const router = express.Router();
  
  // get login page
  router.get('/login', forwardAuth, controller.getLogin);
  router.post('/login', controller.postLogin);
  
  router.get('/dashboard', requireAuth, controller.getDashboard);
  router.get('/profile', requireAuth, controller.getProfile);
  
  router.get('/selectAttendance', requireAuth, controller.getSelectAttendance);
  router.post('/selectAttendance', requireAuth, controller.postSelectAttendance);
  
  router.get('/timetable', requireAuth, controller.getTimeTable);
  
  router.get('/logout', requireAuth, controller.getLogout);
  
  // 1.5 FORGET PASSWORD
  router.get('/forgot-password', forwardAuth, controller.getForgotPassword);
  router.put('/forgot-password', controller.forgotPassword);
  
  // 1.6 RESET PASSWORD
  router.get('/resetpassword/:id', forwardAuth, controller.getResetPassword);
  router.put('/resetpassword', controller.resetPassword);
  
  module.exports = router;
  