Update axum.md

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

View file

@ -2,6 +2,7 @@ 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 * handles the mimetypes
* the api may seem weird: it accepts a path param called `rgb_hex` and serves an image that is closest to that color (that code not here)
```rust ```rust
use axum::body::Body; use axum::body::Body;