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

Post FastBoot middleware hook (afterMiddleware) not working #44

Open
pohodnya opened this issue Jan 12, 2017 · 0 comments
Open

Post FastBoot middleware hook (afterMiddleware) not working #44

pohodnya opened this issue Jan 12, 2017 · 0 comments

Comments

@pohodnya
Copy link

pohodnya commented Jan 12, 2017

let server = new FastBootAppServer({
    distPath: process.env.DIST_PATH,
    gzip: true,
    beforeMiddleware(app) {
      app.use((req, res, next) => {
          console.log('beforeMiddleware');
          next();
      });
    },
    afterMiddleware(app) {
        app.use((err, req, res, next) => {
            console.log('afterMiddleware');
            next();
        });
    }
});

beforeMiddleware - work!
afterMiddleware - not work!

I want to change response body after Fastboot render. How can i do it?
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