fix(middleware): add UseRouting before UseAuthorization

Added `app.UseRouting()` in the middleware pipeline to ensure proper endpoint routing before authorization and controller mapping.
This commit is contained in:
Developer 02 2025-11-04 17:18:29 +01:00
parent 3c456562cc
commit 7d5b988842

View File

@ -121,6 +121,8 @@ try
app.UseHttpsRedirection();
app.UseRouting();
app.UseAuthorization();
app.MapControllers();