Add "AlwayLogin" to check the token
This commit is contained in:
@@ -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.
Binary file not shown.
Reference in New Issue
Block a user