zero2prod_axum/src/routes/subscriptions.rs

13 lines
251 B
Rust
Raw Normal View History

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