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:
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.