Advanced Node and Express - How to Put a Profile Together
I’m getting this error on test. Anyone else ever get this?
“You should correctly add a Pug render variable to /profile.”
I’m getting this error on test. Anyone else ever get this?
“You should correctly add a Pug render variable to /profile.”
@MJK This worked for me . Try it !!
app.get(
'/profile',
ensureAuthenticated,
(req, res) => res.render(
process.cwd() + '/views/pug/profile.pug',
{ username: req.user.username }
));
YES!!! That did it. Thank so much.
thanks it worked for me can you tell why this works