Adapted existing code to fit the new router design.
Filter example
To test the example, you can just run in a terminal:
curl -u foo:bar http://localhost:9090/user/1 -v