style: cargo fmt
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful

This commit is contained in:
Radical 2025-07-10 15:37:45 +02:00
parent e8b8b49643
commit e8a9857e19
13 changed files with 87 additions and 41 deletions

View file

@ -13,11 +13,11 @@ use crate::{
/// requires auth: kinda, needs refresh token set but no access token is technically required
///
/// ### Responses
///
///
/// 200 Logged out
///
///
/// 404 Refresh token is invalid
///
///
/// 401 Unauthorized (no refresh token found)
///
#[get("/logout")]
@ -38,7 +38,9 @@ pub async fn res(req: HttpRequest, data: web::Data<Data>) -> Result<HttpResponse
refresh_token_cookie.make_removal();
if deleted == 0 {
return Ok(HttpResponse::NotFound().cookie(refresh_token_cookie).finish())
return Ok(HttpResponse::NotFound()
.cookie(refresh_token_cookie)
.finish());
}
Ok(HttpResponse::Ok().cookie(refresh_token_cookie).finish())