aboutsummaryrefslogtreecommitdiff
path: root/examples/tutorial01/polls/urls.rs
diff options
context:
space:
mode:
authorMelody Horn / boringcactus <melody@boringcactus.com>2021-06-12 20:54:43 -0600
committerMelody Horn / boringcactus <melody@boringcactus.com>2021-06-12 20:54:43 -0600
commitfcc13328ff82326d25e39504732701b27f894e22 (patch)
tree4292fa15d137f4c7daa80faeded62cc4e0b881ce /examples/tutorial01/polls/urls.rs
parent1a1af5d9241fe458e3e4cfd6e8c3128ba73348cd (diff)
downloadtosin-fcc13328ff82326d25e39504732701b27f894e22.tar.gz
tosin-fcc13328ff82326d25e39504732701b27f894e22.zip
add aspirational example
derived from the django tutorial
Diffstat (limited to 'examples/tutorial01/polls/urls.rs')
-rw-r--r--examples/tutorial01/polls/urls.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/tutorial01/polls/urls.rs b/examples/tutorial01/polls/urls.rs
new file mode 100644
index 0000000..e978920
--- /dev/null
+++ b/examples/tutorial01/polls/urls.rs
@@ -0,0 +1,7 @@
+use tosin::urls::Path;
+
+use super::views;
+
+pub const url_patterns: &[Path] = [
+ Path::View { url: "", view: views::index, name: "index" },
+];