email wip

This commit is contained in:
Per Stark
2024-12-22 19:55:47 +01:00
parent 3d941d948d
commit 9f23005210
23 changed files with 674 additions and 189 deletions

View File

@@ -1,5 +1,6 @@
use axum::{extract::State, http::StatusCode, response::IntoResponse};
use tracing::info;
use minijinja::context;
use tracing::{info, Instrument};
use crate::{error::ApiError, server::AppState};
@@ -12,6 +13,10 @@ pub async fn queue_length_handler(
info!("Queue length: {}", queue_length);
state
.mailer
.send_email_verification("per@starks.cloud", "1001010", &state.templates)?;
// Return the queue length with a 200 OK status
Ok((StatusCode::OK, queue_length.to_string()))
}