Skip to content

Commit

Permalink
add cfg flags
Browse files Browse the repository at this point in the history
  • Loading branch information
archeoss committed Dec 1, 2023
1 parent 8b3947c commit 9ae3382
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/src/services/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -365,7 +365,8 @@ pub type BobAuth<Client> = AuthStore<
InMemorySessionStore<Uuid, BobUser>,
>;

#[cfg_attr(feature = "swagger", utoipa::path(
#[cfg_attr(all(feature = "swagger", debug_assertions),
utoipa::path(
post,
context_path = ApiV1::to_path(),
path = "/logout",
Expand Down

0 comments on commit 9ae3382

Please sign in to comment.