~garritfra/express-rs#1: 
Dynamic query params

Route handler should be able to provide query parameters like so (Example is only a quick POC):

fn main() {
    let mut app = Express::new();

    app.get("/users/:id", |req, res| res.send(req.params.get("id").unwrap().to_string()));

    app.listen(8080);
}
Status
REPORTED
Submitter
~garritfra
Assigned to
No-one
Submitted
10 months ago
Updated
10 months ago
Labels
No labels applied.