feat: add oauth flow base

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-03-27 18:39:29 +00:00
parent 4f0f8ddbe1
commit 3081fb4af8
12 changed files with 763 additions and 225 deletions

View File

@@ -1,9 +1,13 @@
mod auth;
mod health;
use axum::Router;
pub fn routes() -> Router {
let health = health::routes();
use crate::state::State;
Router::new().merge(health)
pub fn routes(state: State) -> Router {
let auth = auth::routes(state.clone());
let health = health::routes(state);
Router::new().merge(auth).merge(health)
}