aboutsummaryrefslogtreecommitdiff
path: root/examples/tutorial01/polls/urls.rs
blob: 184c6f89bd34059923e25e252ce159b970734ac9 (plain)
1
2
3
4
5
6
7
8
9
use tosin::http::Filter;
use tosin::urls::{UrlMap, path};

use super::views;

pub fn urls() -> UrlMap {
    path::end().map(views::index) // TODO name: "index"
        .boxed()
}