diff options
author | Tom Smeding <tom@tomsmeding.com> | 2025-01-19 16:22:12 +0100 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2025-01-19 16:22:58 +0100 |
commit | 69c079a99436a9ea6b8025de03ae21ebd11e00c9 (patch) | |
tree | dce458d0fdcd11746631e55500ff148843ce89b8 /server/src/main.rs | |
parent | 6d70c89a2b45d86cd12a99467d6e1eb4c6328ed7 (diff) |
Move kaasnoot-server to server
Diffstat (limited to 'server/src/main.rs')
-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; +} |