Update "User" API
This commit is contained in:
@@ -22,11 +22,11 @@ namespace skydiveLogs_api.Controllers
|
||||
}
|
||||
|
||||
// POST: api/User
|
||||
[HttpPost]
|
||||
[HttpPost("Authenticate")]
|
||||
[EnableCors]
|
||||
public UserResp Authenticate([FromBody] string login, [FromBody] string password)
|
||||
public UserResp Authenticate([FromBody] UserReq value)
|
||||
{
|
||||
var result = _userService.GetByLogin(login, password);
|
||||
var result = _userService.GetByLogin(value.Login, value.Password);
|
||||
return _mapper.Map<UserResp>(result);
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user