As far as I could test, it needs to be implicitly available at the point where you *compile* your endpoints. I do have a pretty modular architecture in my app and not knowing where this needs to be available only led me to trial and error.