aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
blob: d5f89caa3371e418f36ec2a8c9a6a9ef677ce2f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[macro_use]
extern crate rouille;


fn main() {
    rouille::start_server("localhost:8000", move |request| {
        router!(request,
            (GET) (/) => {
                rouille::Response::text("hello world")
            },

            _ => rouille::Response::empty_404()
        )
    });
}