12 lines
207 B
Rust
12 lines
207 B
Rust
use sincere::App;
|
|
|
|
fn main() {
|
|
let mut app = App::new();
|
|
|
|
app.get("/", |context| {
|
|
context.response.from_text("Hello world!").unwrap();
|
|
});
|
|
|
|
app.run("127.0.0.1:8000", 20).unwrap();
|
|
}
|