You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was working on a feature that used an npm package to get the IP address of a client conncting to the Fastboot server, which was configured as a middleware in fastboot-server.js, which initializes Fastboot using this middleware. However, it appears that there is no way to pass data to Fastboot through fastboot-express-middleware, which makes it very challenging to extend Fastboot using other middlewares.
Let me know if you need more information about my use case, but overall I think it would be important to maintain modularity by allowing information to be passed into Fastboot through this middleware.
The text was updated successfully, but these errors were encountered:
Can't you pass through on the request object? If you add something to the request, you also have access to that within your fastboot ember application. Not sure if i'm getting the wrong end of the stick about the use case though.
It looks like the this.fastboot.request is an object with some informations extracted from Express' request. It's not Express' request object itself.
In my case, I would like to know if the request was made from a mobile browser. I already have req.useragent.isMobile working on my server, but I can't access this information running this.fastboot.request.useragent.isMobile.
I was working on a feature that used an npm package to get the IP address of a client conncting to the Fastboot server, which was configured as a middleware in
fastboot-server.js
, which initializes Fastboot using this middleware. However, it appears that there is no way to pass data to Fastboot through fastboot-express-middleware, which makes it very challenging to extend Fastboot using other middlewares.Let me know if you need more information about my use case, but overall I think it would be important to maintain modularity by allowing information to be passed into Fastboot through this middleware.
The text was updated successfully, but these errors were encountered: