Added AppState.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user