From be2af8a5fe2e58953b4970e3fed970165fc4b4ca Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Mon, 6 Apr 2026 22:02:47 +0200 Subject: ci: build --- crates/sellershut/src/server/api/routes/auth/authorised.rs | 1 + crates/sellershut/src/server/api/routes/auth/mod.rs | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 crates/sellershut/src/server/api/routes/auth/authorised.rs (limited to 'crates') diff --git a/crates/sellershut/src/server/api/routes/auth/authorised.rs b/crates/sellershut/src/server/api/routes/auth/authorised.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/crates/sellershut/src/server/api/routes/auth/authorised.rs @@ -0,0 +1 @@ + diff --git a/crates/sellershut/src/server/api/routes/auth/mod.rs b/crates/sellershut/src/server/api/routes/auth/mod.rs index 9efd542..7414b77 100644 --- a/crates/sellershut/src/server/api/routes/auth/mod.rs +++ b/crates/sellershut/src/server/api/routes/auth/mod.rs @@ -1,6 +1,11 @@ +mod authorised; use anyhow::Context; use api_core::auth::provider::OauthProvider; -use axum::{extract::{Query, State}, http::{HeaderMap, header::SET_COOKIE}, response::{IntoResponse, Redirect}}; +use axum::{ + extract::{Query, State}, + http::{HeaderMap, header::SET_COOKIE}, + response::{IntoResponse, Redirect}, +}; use serde::Deserialize; use utoipa::{IntoParams, OpenApi}; use utoipa_axum::router::OpenApiRouter; @@ -50,7 +55,8 @@ pub fn router(store: AppState) -> OpenApiRouter { )] pub async fn auth( Query(params): Query, - State(state): State) -> Result { + State(state): State, +) -> Result { let client = state .auth_clients .get(¶ms.provider) -- cgit v1.2.3