aboutsummaryrefslogtreecommitdiffstats
path: root/crates
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2026-04-06 22:02:47 +0200
committerrtkay123 <dev@kanjala.com>2026-04-06 22:02:47 +0200
commitbe2af8a5fe2e58953b4970e3fed970165fc4b4ca (patch)
tree67dba5cc6ff099e5aff100ff0489579e1817de60 /crates
parentee324d087ae51f7fa285c00f6ac69fb597003be9 (diff)
downloadsellershut-be2af8a5fe2e58953b4970e3fed970165fc4b4ca.tar.bz2
sellershut-be2af8a5fe2e58953b4970e3fed970165fc4b4ca.zip
ci: build
Diffstat (limited to 'crates')
-rw-r--r--crates/sellershut/src/server/api/routes/auth/authorised.rs1
-rw-r--r--crates/sellershut/src/server/api/routes/auth/mod.rs10
2 files changed, 9 insertions, 2 deletions
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<AppState> {
)]
pub async fn auth(
Query(params): Query<OauthParams>,
- State(state): State<AppState>) -> Result<impl IntoResponse, AppError> {
+ State(state): State<AppState>,
+) -> Result<impl IntoResponse, AppError> {
let client = state
.auth_clients
.get(&params.provider)