Render and download PDF when clicking the button

This commit is contained in:
Joscha 2024-05-05 00:12:50 +02:00
parent b14284b6ac
commit 6a11bdeb9a
7 changed files with 255 additions and 18 deletions

View file

@ -14,7 +14,8 @@ struct Args {
async fn main() -> anyhow::Result<()> {
let args = Args::parse();
let app = Router::<()>::new().route("/", get(endpoints::index::get));
let app =
Router::<()>::new().route("/", get(endpoints::index::get).post(endpoints::index::post));
let listener = TcpListener::bind(args.addr).await?;
axum::serve(listener, app).await?;