Add "AlwayLogin" to check the token

This commit is contained in:
Sébastien André
2020-03-21 17:12:25 +01:00
parent c85b036b7e
commit 77c545499d
3 changed files with 11 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ namespace skydiveLogs_api.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class UserController : ControllerBase
public class UserController : Base
{
public UserController(IUserService userService,
IMapper mapper,
@@ -34,7 +34,16 @@ namespace skydiveLogs_api.Controllers
.ToDictionary(d => d.Key, d => d.Value);
}
// POST: api/User
// GET: api/User/AlwayLogin
[HttpGet("AlwayLogin")]
[EnableCors]
public IActionResult AlwayLogin()
{
return Ok();
}
// POST: api/User/Authenticate
[AllowAnonymous]
[HttpPost("Authenticate")]
[EnableCors]

Binary file not shown.