how do I get the app.locals object in express routing?
as follows,
router.get("/user/logout", (req, res) => {
delete req.session.user
delete app.locals.user
res.redirect("/")
})
will report an error: there is no app.