aboutsummaryrefslogtreecommitdiff
path: root/examples/tutorial01
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorial01')
-rw-r--r--examples/tutorial01/main.rs4
-rw-r--r--examples/tutorial01/polls/mod.rs2
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/tutorial01/main.rs b/examples/tutorial01/main.rs
index f99ae7f..0fb087d 100644
--- a/examples/tutorial01/main.rs
+++ b/examples/tutorial01/main.rs
@@ -6,8 +6,8 @@ mod polls;
fn urls() -> UrlMap {
url_map! {
- "polls" / ..polls::urls::urls(),
- "admin" / ..admin::site::urls::urls(),
+ "polls" / ..polls::urls(),
+ "admin" / ..admin::site::urls(),
}
}
diff --git a/examples/tutorial01/polls/mod.rs b/examples/tutorial01/polls/mod.rs
index fd1dad8..d22af0f 100644
--- a/examples/tutorial01/polls/mod.rs
+++ b/examples/tutorial01/polls/mod.rs
@@ -1,2 +1,4 @@
pub mod urls;
pub mod views;
+
+pub use urls::urls;