ember-fastboot / ember-fastboot/fastboot-app-server

Post FastBoot middleware hook (afterMiddleware) not working

Open
#44 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
140
Forks
70
PR merge metrics
No merged PRs in 30d

Description

```javascript
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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.