Controller without the controller suffix

前端 未结 1 1675
情深已故
情深已故 2021-01-20 02:41

based on my design requirements, I will like to exclude the suffix \'Controller\' from my controllers and replace it with \'Resource\'. So that \'FundsController\' will beco

相关标签:
1条回答
  • 2021-01-20 03:17

    "Controller" is hard-coded into the framework but you can you can create a new controller type resolver. Here is an excellent article from Filip - http://www.strathweb.com/2013/02/but-i-dont-want-to-call-web-api-controllers-controller/.

    0 讨论(0)
提交回复
热议问题