79323955

Date: 2025-01-02 14:12:33
Score: 0.5
Natty:
Report link

Middleware logic

function isLoggedIn(params){
return function(req, res, next){
// middleware logic with param(s)}
}

Code logic

app.get(endpoint,isLoggedIn(params),function (req,res){
//endpoint logic
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user9888797