mirror of
https://github.com/Garmelon/Arbeitszeitdokumentationsgenerator.git
synced 2026-04-12 16:55:04 +02:00
Render and download PDF when clicking the button
This commit is contained in:
parent
b14284b6ac
commit
6a11bdeb9a
7 changed files with 255 additions and 18 deletions
|
|
@ -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?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue