Add "AlwayLogin" to check the token
This commit is contained in:
@@ -21,7 +21,7 @@ namespace skydiveLogs_api.Controllers
|
|||||||
{
|
{
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
public class UserController : ControllerBase
|
public class UserController : Base
|
||||||
{
|
{
|
||||||
public UserController(IUserService userService,
|
public UserController(IUserService userService,
|
||||||
IMapper mapper,
|
IMapper mapper,
|
||||||
@@ -34,7 +34,16 @@ namespace skydiveLogs_api.Controllers
|
|||||||
.ToDictionary(d => d.Key, d => d.Value);
|
.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]
|
[AllowAnonymous]
|
||||||
[HttpPost("Authenticate")]
|
[HttpPost("Authenticate")]
|
||||||
[EnableCors]
|
[EnableCors]
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user