refactor: middlewares folder
CI / Rust CI (push) Successful in 1m37s
Publish & Deploy / Build and Push to Registry (push) Successful in 24s
Publish & Deploy / Deploy via SSH (push) Successful in 17s

This commit is contained in:
2026-04-11 20:35:36 +02:00
parent e1f46c07b4
commit f4da65dbc2
8 changed files with 7 additions and 3 deletions
+1
View File
@@ -1,3 +1,4 @@
pub mod dto;
pub mod errors;
pub mod middlewares;
pub mod providers;
+1 -1
View File
@@ -1,7 +1,7 @@
mod auth;
mod docs;
mod dto;
mod errors;
mod middlewares;
mod providers;
mod routes;
mod state;
@@ -1,6 +1,6 @@
use axum::{extract::Request, http::StatusCode, middleware::Next, response::Response};
use crate::auth::{
use crate::middlewares::auth::{
jwt::validate_token,
keycloak::{get_jwks, refresh_jwks},
};
@@ -1,3 +1,5 @@
pub mod jwt;
pub mod keycloak;
pub mod middleware;
pub use middleware::auth_middleware;
+1
View File
@@ -0,0 +1 @@
pub mod auth;
+1 -1
View File
@@ -1,8 +1,8 @@
pub mod chat;
pub mod models;
use crate::auth::middleware::auth_middleware;
use crate::docs::ApiDoc;
use crate::middlewares::auth::auth_middleware;
use crate::state::app_state::AppState;
use axum::{Json, Router, middleware, routing::get, routing::post};
use utoipa::OpenApi;