Update axum.md
This commit is contained in:
parent
5669fd07a6
commit
d7f2a2c2d6
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue