An exception of type 'System.InvalidOperationException' occurred in Microsoft.AspNetCore.Mvc.Core.dll but was not handled in user code: 'Action 'API.Controllers.Staff.AttendanceListing.Listing (API)' does not have an attribute route code example
Example: change dot net core web api routing
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
});