aboutsummaryrefslogtreecommitdiff
path: root/src/urls
diff options
context:
space:
mode:
Diffstat (limited to 'src/urls')
-rw-r--r--src/urls/mod.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/urls/mod.rs b/src/urls/mod.rs
new file mode 100644
index 0000000..1acf186
--- /dev/null
+++ b/src/urls/mod.rs
@@ -0,0 +1,16 @@
+use crate::http::{Request, Response};
+
+pub type View = fn(Request) -> Response;
+
+pub enum Path {
+ View {
+ url: &'static str,
+ view: View,
+ name: &'static str,
+ },
+
+ Include {
+ url: &'static str,
+ content: &'static [Path],
+ },
+}