zero2prod_axum/src/routes/subscriptions.rs

13 lines
253 B
Rust
Raw Normal View History

2024-01-01 21:02:31 +01:00
use axum::routing::post;
2023-12-30 22:21:57 +01:00
use axum::Router;
use serde::Deserialize;
#[derive(Deserialize)]
struct FormData {
email: String,
name: String,
}
pub fn routes_subscriptions() -> Router {
2024-01-01 21:02:31 +01:00
Router::new().route("/subscriptions", post(|| async {}))
2023-12-30 22:21:57 +01:00
}