feat: add sincere

This commit is contained in:
2020-10-09 23:40:19 +08:00
parent 3ab0c24cf6
commit b685938431
4 changed files with 1127 additions and 0 deletions

11
sincere/src/main.rs Normal file
View File

@@ -0,0 +1,11 @@
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();
}