/// <summary>Configures the specified application.</summary> /// <param name="app">The application.</param> /// <param name="env">The environment.</param> /// <remarks>This method gets called by the runtime. Use this method to configure the HTTP request pipeline.</remarks> public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { ApplicationDbContextSeed.InitializeDatabase(Configuration); } app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); endpoints.MapHealthChecks("/health"); }); }