Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 359 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 359 Bytes

lightyear ☄️

A lightning fast web server written in rust, inspired by express syntax

Usage

Express like syntax

use lightyear::Lightyear;

let mut app = Lightyear::new();
let port = 3000;

app.get("/", | req, res | {
    res.send("Hello World!");
});

app.listen(port, | | {
    println!("Example app listening on port {}", port);
});