ASP.NET MVC - Catch All Route And Default Route

后端 未结 8 1972
伪装坚强ぢ
伪装坚强ぢ 2020-11-28 04:15

In trying to get my application to produce 404 errors correctly, I have implemented a catch all route at the end of my route table, as shown below:

 routes.M         


        
8条回答
  •  被撕碎了的回忆
    2020-11-28 04:59

    If you're looking for ASP.NET Core catch all routes and searching Google for asp.net core catch all route brings you here:

    ASP.net core MVC catch all route serve static file

提交回复
热议问题