fix: remove authorize

This commit is contained in:
Polianin Nikita 2024-11-04 02:36:22 +03:00
parent 713bbfa16f
commit 65d928ec2d

View File

@ -80,8 +80,6 @@ public class AuthController(IOptionsSnapshot<Admin> user, AuthService auth, Pass
/// </summary>
/// <returns>An Ok response if the logout was successful.</returns>
[HttpGet("Logout")]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[Authorize]
public async Task<ActionResult> Logout()
{
await auth.LogoutAsync(GetCookieParams(), HttpContext);