Skip to content

Routing

Victor Dudochkin edited this page Jun 8, 2018 · 1 revision

Routing

First look at design.

    let router = Rourer::new()
        .get(RegexMatch{"/article/(\d{4})"}, articlesHandler)
        .post(StrongMatch{"/api/v1"}, apiHandler)
        .get(StrongMatch{"/"}, landingHandler)
Clone this wiki locally