aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2022-03-21 15:36:36 +0000
committerXe Iaso <me@christine.website>2022-03-21 15:36:36 +0000
commitef2644646e0b004a8b702f98d9ec60a3796571a9 (patch)
tree40034d54ee09124a640b01acf37b8bac87cae6b3 /examples
parentcc3825aacc94c7a572ed46900a01c8df9e008141 (diff)
downloadxesite-ef2644646e0b004a8b702f98d9ec60a3796571a9.tar.xz
xesite-ef2644646e0b004a8b702f98d9ec60a3796571a9.zip
remove warp example
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'examples')
-rw-r--r--examples/warp.rs14
1 files changed, 0 insertions, 14 deletions
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;
-}