Make it possible to return the routes instead of having to intialize the application

#12829

If someone figures out how to unit test this, please tell me :)

Works fine with a small change in the News app