diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/main.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/server/src/main.rs b/server/src/main.rs new file mode 100644 index 0000000..40eb9c8 --- /dev/null +++ b/server/src/main.rs @@ -0,0 +1,13 @@ +use tokio; +use warp::Filter; + +#[tokio::main] +async fn main() { + let hello = warp::path!("hello" / String) + .and_then(|name| format!("Hello, {}!", name)) + .or(|rip| _); + + warp::serve(hello) + .run(([127, 0, 0, 1], 3030)) + .await; +} |