Suppressing warning for endpoints #107

Merged
kdeng00 merged 2 commits from program_warning into master 2025-03-01 16:36:02 -05:00
Showing only changes of commit 14385fee39 - Show all commits
+2
View File
@@ -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();