Suppressing warning for endpoints #107
@@ -98,10 +98,12 @@ if (app.Environment.IsDevelopment())
|
||||
app.UseRouting();
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
#pragma warning disable ASP0014
|
||||
app.UseEndpoints(endpoints =>
|
||||
{
|
||||
endpoints.MapControllers();
|
||||
});
|
||||
#pragma warning restore ASP0014
|
||||
|
||||
|
||||
app.Run();
|
||||
|
||||
Reference in New Issue
Block a user