]> piware.de Git - learn-rust.git/commit
axum-server: Add unit test for /hello route
authorMartin Pitt <martin@piware.de>
Fri, 9 Dec 2022 12:33:45 +0000 (13:33 +0100)
committerMartin Pitt <martin@piware.de>
Fri, 9 Dec 2022 12:33:45 +0000 (13:33 +0100)
commit9f1890257c2ebae6b98314fd1eedcec8ad1b942a
tree58024ff02822527bea74ce4fadad82defd7415ad
parent8fdc8d06c05d3cd957b17755609db90d1123df31
axum-server: Add unit test for /hello route

Similar to what commit be3212fb7c5a did for warp-server. Split out the
whole app router into a separate app() function, to make it accessible
to unit testing.
axum-server/Cargo.toml
axum-server/src/main.rs