1

Code:

/**
 * Login
 * @function login
 * @param {function} noCacheRoute - Function for not cache
 * @param {function} isAuthenticated - Function for validate authenticate
 * @param {Object} req - Express request object
 * @param {Object} res - Express response object
 */
router.get('/login', noCacheRoute, isAuthenticated, (req, res) => {
    res.render('visitor/login');
});

Result:

enter image description here

Question:

Exist some way of to document this cases of route with callbacks functions?

I looked the jsdoc-route-plugin module and this response but not see that it adequate for the case.

alditis
  • 3,983
  • 3
  • 37
  • 68

0 Answers0