How do you inherit route prefixes at the controller class level in WebApi?

后端 未结 5 1423
粉色の甜心
粉色の甜心 2021-01-11 10:49

Note, I\'ve read about the new routing features as part of WebApi 2.2 to allow for inheritance of routes. This does not seem to solve my particular issue, however. It seems

5条回答
  •  粉色の甜心
    2021-01-11 11:56

    Maybe it is late, but I think this base controller attribute will make it work:

    [Route("account/[Controller]")]
    

提交回复
热议问题