Require API Key

I would like to restrict access to my routing server with an API key. Does the config support this? If not, any other ideas?

GraphHopper is a routing engine and such code is out of scope of the project. A simple solution could be nginx as a reverse proxy in front of GraphHopper.