Hey all! I am currently using the WebApp.rawConnectHandlers.use() method on my main server file to load data into the head of all routes using req.dynamicHead.
I am sure this is possible, but I am not sure how to execute it, how would I exclude the sting I am injecting into the head from a list of routes? (I am using flow-router).
I found this part of the docs where it shows how to use it for a single route:
EDIT: I realised that you are trying to do all this using only the pure Connect handler in Meteor. In that case you cannot use a pattern. For advanced context matching there is a powerful middlleware which you can drop straight into Meteor: https://github.com/chimurai/http-proxy-middleware
Create your Express based proxy like int their readme, then plug it into Meteor: