From ef2644646e0b004a8b702f98d9ec60a3796571a9 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Mon, 21 Mar 2022 15:36:36 +0000 Subject: remove warp example Signed-off-by: Xe Iaso --- examples/warp.rs | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 examples/warp.rs (limited to 'examples') diff --git a/examples/warp.rs b/examples/warp.rs deleted file mode 100644 index c705b47..0000000 --- a/examples/warp.rs +++ /dev/null @@ -1,14 +0,0 @@ -use warp::Filter; - -#[tokio::main] -async fn main() { - let hello = warp::path!("hello" / String) - .map(|name| format!("Hello, {}!", name)); - let health = warp::path!(".within" / "health") - .map(|| "OK"); - let routes = hello.or(health); - - warp::serve(routes) - .run(([0, 0, 0, 0], 3030)) - .await; -} -- cgit v1.2.3