diff --git a/backend/src/services/auth.rs b/backend/src/services/auth.rs index c5a0d213..42b539da 100644 --- a/backend/src/services/auth.rs +++ b/backend/src/services/auth.rs @@ -47,7 +47,7 @@ pub struct Credentials { /// 3. [`StatusCode::UNAUTHORIZED`] /// The client couldn't authorize on the host /// -#[cfg_attr(feature = "swagger", +#[cfg_attr(all(feature = "swagger", debug_assertions), utoipa::path( post, context_path = ApiV1::to_path(), @@ -365,7 +365,8 @@ pub type BobAuth = AuthStore< InMemorySessionStore, >; -#[cfg_attr(feature = "swagger", utoipa::path( +#[cfg_attr(all(feature = "swagger", debug_assertions), + utoipa::path( post, context_path = ApiV1::to_path(), path = "/logout",