Store registered routes after registration

We store the routes that were registered in the same format as they
would have been set.