我有以下控制器和路线
[HttpGet]
[Route("getByEmail/{email:alpha}")]
public IHttpActionResult Get(string email)
{
var user = _userLogic.GetUserByEmail(email);
return Ok(user);
}
但是当我打电话
localhost/WebApp/api/user/getByEmail/fsd@sd
它返回 404 未找到
I've tried
localhost/WebApp/api/user/getByEmail/?email=fsd@sd
但它会得到所有有人可以帮助我吗?