summaryrefslogtreecommitdiff
path: root/server/src/main.rs
blob: 40eb9c8c116ec40e567bea770c9c88663d79e642 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
}