nicholasbergesen / boulderlog

Just go up
https://boulderlog.azurewebsites.net/
0 stars 1 forks source link

Fix: Added app.Fallback to handel unknown routes #32

Closed apchandu96 closed 5 months ago

apchandu96 commented 5 months ago

Fix for handeling 404 1) I've inserted app.UseAuthentication(); prior to app.UseAuthorization(); to make sure the authentication middleware is activated.

2) I've included a fallback route app.MapFallback that redirects users to /Account/Login for any invalid URL requests.