I am trying to authenticate the route to avoid direct access to a login required page
router.get("/customerform", authenticateToken (req, res) => {
res.sendFile(path.join(__dirname, "../public/customerform.html"));
});
this is not working
I am trying to authenticate the route to avoid direct access to a login required page
router.get("/customerform", authenticateToken (req, res) => {
res.sendFile(path.join(__dirname, "../public/customerform.html"));
});
this is not working