Added auth endpoint placeholders.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
use axum::routing::post;
|
||||
use sqlx::PgPool;
|
||||
|
||||
use crate::error::AppError;
|
||||
|
||||
pub fn create_router() -> axum::Router<PgPool> {
|
||||
axum::Router::new()
|
||||
.route("/options", post(get_challenge_options))
|
||||
.route("/verify", post(verify_challenge_response))
|
||||
}
|
||||
|
||||
#[axum::debug_handler]
|
||||
#[tracing::instrument()]
|
||||
async fn get_challenge_options() -> Result<(), AppError> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[axum::debug_handler]
|
||||
#[tracing::instrument()]
|
||||
async fn verify_challenge_response() -> Result<(), AppError> {
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user