Update axum.md

This commit is contained in:
Sander Hautvast 2024-03-29 15:43:20 +01:00 committed by GitHub
parent 2c87af136c
commit 5669fd07a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
Setup for axum serving static files and a rest API, using axum Setup for axum serving static files and a rest API, using axum
* took me a while to get right, but now it's no use anymore * took me a while to get right, but now it's no use anymore
* assumes static files in ./assets * assumes static files in ./assets
* handles the mimetypes
```rust ```rust
use axum::body::Body; use axum::body::Body;