Example of how to have dynamically configurable endpoints with spray