How to define global application variables that are accessible from all mojit controllers and any middleware?
As the topic title states, I would like to define a variable that is available everywhere in my Mojito app, be it in JS files that will serve as middleware or the mojit controllers.
Based on the Mojito documentation it appears that Addons would be one option, i.e. the variables would be attached to the ActionContext object, however that object is not accessible in the middleware. What is the right way to do this?