aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2022-03-21 20:14:14 -0400
committerGitHub <noreply@github.com>2022-03-21 20:14:14 -0400
commit8b747c1c40876c6668191594eddcb260199cdb7f (patch)
tree86edb9bc382751c6a32f5f2946ff235ea06674ba /examples
parentf45ca40ae1052d46611ff2f27ad281695afc4f8f (diff)
downloadxesite-8b747c1c40876c6668191594eddcb260199cdb7f.tar.xz
xesite-8b747c1c40876c6668191594eddcb260199cdb7f.zip
Rewrite the site routing with Axum (#441)
* broken state Signed-off-by: Xe Iaso <me@christine.website> * fix??? Signed-off-by: Xe Iaso <me@christine.website> * Port everything else to axum Signed-off-by: Xe <me@christine.website> * headers Signed-off-by: Xe Iaso <me@christine.website> * site update post Signed-off-by: Christine Dodrill <me@christine.website> * fix headers Signed-off-by: Xe Iaso <me@christine.website> * remove warp example Signed-off-by: Xe Iaso <me@christine.website> * 80c wrap Signed-off-by: Xe Iaso <me@christine.website> * bump version 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;
-}