zero2prod_axum/src/routes/subscriptions.rs

13 lines
271 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;
2024-01-01 22:11:18 +01:00
// use serde::Deserialize;
2023-12-30 22:21:57 +01:00
2024-01-01 22:11:18 +01:00
// #[derive(Deserialize)]
// struct FormData {
// email: String,
// name: String,
// }
2023-12-30 22:21:57 +01:00
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
}