I am loading a configuration from the server api and assign the new routes to the router, by using resetConfig and APP_INITIALIZER
resetConfig
APP_INITIALIZER