]> piware.de Git - learn-rust.git/commit
warp-server: Add unit test for /hello route
authorMartin Pitt <martin@piware.de>
Fri, 9 Dec 2022 08:00:12 +0000 (09:00 +0100)
committerMartin Pitt <martin@piware.de>
Fri, 9 Dec 2022 08:05:14 +0000 (09:05 +0100)
commitbe3212fb7c5a4b7a9f595f51f821c79cbda9df3a
treece731d06aedb0da8aaf35f4c1e6908bcc210c4fd
parent354db3bfde77c75c9d53a76b7f3bc09de3243e00
warp-server: Add unit test for /hello route

Split out the API into a separate function, to make it accessible for
unit tests.
warp-server/src/main.rs