mirror of
https://github.com/perstarkse/minne.git
synced 2026-03-29 22:01:59 +02:00
email wip
This commit is contained in:
@@ -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()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user