12 lines
238 B
Rust
12 lines
238 B
Rust
|
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()
|
||
|
}
|