mirror of
https://github.com/tower-rs/tower-http.git
synced 2026-03-11 07:39:35 +00:00
axum-key-value-store
This examples contains a simple key/value store with an HTTP API built using axum.
Endpoints
GET /:key- Look up a key. If the key doesn't exist it returns404 Not FoundPOST /:key- Insert a key. The value is the request body.
Running the example
RUST_LOG=axum_key_value_store=trace,tower_http=trace \
cargo run --bin axum-key-value-store