16 lines
322 B
C#
16 lines
322 B
C#
using Microsoft.AspNetCore.Authentication;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace YPS.Beer.Controllers;
|
|
|
|
[ApiController]
|
|
public class AuthController : ControllerBase
|
|
{
|
|
[HttpGet("logout")]
|
|
public async Task<IActionResult> Logout()
|
|
{
|
|
await HttpContext.SignOutAsync();
|
|
|
|
return Ok();
|
|
}
|
|
} |