diff options
author | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-13 16:33:46 -0600 |
---|---|---|
committer | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-13 16:33:46 -0600 |
commit | 311b49a2fdd97b8b870dbaccccb55058ee0207c8 (patch) | |
tree | 1ca431733526cac1c7c2f7f1bfda7324ae088d50 /examples/tutorial01 | |
parent | cc7d316e588c21de1023d6a76d4ea5e7b893977a (diff) | |
download | tosin-311b49a2fdd97b8b870dbaccccb55058ee0207c8.tar.gz tosin-311b49a2fdd97b8b870dbaccccb55058ee0207c8.zip |
lay groundwork for models
Diffstat (limited to 'examples/tutorial01')
-rw-r--r-- | examples/tutorial01/main.rs | 4 | ||||
-rw-r--r-- | examples/tutorial01/polls/mod.rs | 2 |
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; |