No type was found that matches the controller named 'User'

后端 未结 14 2504
孤城傲影
孤城傲影 2020-12-23 19:49

I\'m trying to navigate to a page which its URL is in the following format: localhost:xxxxx/User/{id}/VerifyEmail?secretKey=xxxxxxxxxxxxxxx

I\'ve added a new route i

14条回答
  •  长情又很酷
    2020-12-23 19:52

    In my case I was calling the APi like

    http://locahost:56159/api/loginDataController/GetLoginData

    while it should be like

    http://locahost:56159/api/loginData/GetLoginData

    removed Controller from URL and it started working ...

    Peace!

提交回复
热议问题