diff options
Diffstat (limited to 'examples/tutorial01/polls')
-rw-r--r-- | examples/tutorial01/polls/urls.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/tutorial01/polls/urls.rs b/examples/tutorial01/polls/urls.rs index 184c6f8..04d93cc 100644 --- a/examples/tutorial01/polls/urls.rs +++ b/examples/tutorial01/polls/urls.rs @@ -1,9 +1,9 @@ -use tosin::http::Filter; -use tosin::urls::{UrlMap, path}; +use tosin::urls::{UrlMap, url_map}; use super::views; pub fn urls() -> UrlMap { - path::end().map(views::index) // TODO name: "index" - .boxed() + url_map! { + => views::index, // TODO name: "index" + } } |