diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 14 | 
1 files changed, 13 insertions, 1 deletions
| diff --git a/src/main.rs b/src/main.rs index e7a11a9..d5f89ca 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,15 @@ +#[macro_use] +extern crate rouille; + +  fn main() { -    println!("Hello, world!"); +    rouille::start_server("localhost:8000", move |request| { +        router!(request, +            (GET) (/) => { +                rouille::Response::text("hello world") +            }, + +            _ => rouille::Response::empty_404() +        ) +    });  } | 
