Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can i use it without defining res.locals.messages? #23

Open
galuh1300d opened this issue Dec 23, 2018 · 0 comments
Open

Can i use it without defining res.locals.messages? #23

galuh1300d opened this issue Dec 23, 2018 · 0 comments

Comments

@galuh1300d
Copy link

Hello, can i use express-messages without defining

app.use(function (req, res, next) {
  res.locals.messages = require('express-messages')(req, res);
  next();
});

because i try it to combine with fastify, but fastify doesn't have locals
thanks before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant