Handler to send emails to confirmed subscribers

This commit is contained in:
Alphonse Paix
2025-08-27 12:13:58 +02:00
parent 9193f2020d
commit 8447d050d6
8 changed files with 242 additions and 23 deletions

View File

@@ -61,6 +61,7 @@ pub fn app(connection_pool: PgPool, email_client: EmailClient, base_url: String)
.route("/health_check", get(health_check))
.route("/subscriptions", post(subscribe))
.route("/subscriptions/confirm", get(confirm))
.route("/newsletters", post(publish_newsletter))
.layer(
TraceLayer::new_for_http()
.make_span_with(|request: &Request<_>| {