Added AppState.

This commit is contained in:
2026-10-12 13:05:38 +02:00
parent 0b0c72b337
commit e963947bf8
12 changed files with 31 additions and 15 deletions
+2 -3
View File
@@ -1,9 +1,8 @@
use axum::routing::post;
use sqlx::PgPool;
use crate::error::AppError;
use crate::{error::AppError, state::AppState};
pub fn create_router() -> axum::Router<PgPool> {
pub fn create_router() -> axum::Router<AppState> {
axum::Router::new()
.route("/options", post(get_challenge_options))
.route("/verify", post(verify_challenge_response))