There is no Startup.cs in the web/api application any more.
We used to be able to inject IConfiguration into that Startup class.
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration
}
...
}
Now that those add service and configuration code is moved into Program.cs, what is the correct way to access configuration from there?

