email_newsletter_api/src/routes/subscriptions.rs

12 lines
238 B
Rust
Raw Normal View History

2024-05-03 15:43:34 -04:00
use actix_web::{web, HttpResponse};
#[derive(serde::Deserialize)]
pub struct FormData {
email: String,
name: String,
}
pub async fn subscribe_route(_form: web::Form<FormData>) -> HttpResponse {
HttpResponse::Ok().finish()
}