adds hello world, adds architecture doc
This commit is contained in:
11
src/main.rs
Normal file
11
src/main.rs
Normal file
@ -0,0 +1,11 @@
|
||||
use warp::Filter;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let hello = warp::get()
|
||||
.map(|| format!("Hello world!"));
|
||||
|
||||
warp::serve(hello)
|
||||
.run(([127, 0, 0, 1], 5309))
|
||||
.await;
|
||||
}
|
Reference in New Issue
Block a user