use crate::saas::handlers::SaasState;
use axum::{
extract::{Path, State},
http::StatusCode,
response::IntoResponse,
};
pub async fn handle_verification_challenge(
State(_state): State<SaasState>,
Path(token): Path<String>,
) -> impl IntoResponse {
let expected_content = format!("postrust-verify={}", token);
(StatusCode::OK, expected_content)
}
pub async fn handle_acme_challenge(
State(_state): State<SaasState>,
Path(_token): Path<String>,
) -> impl IntoResponse {
(StatusCode::NOT_FOUND, "ACME challenge not found")
}