From 582124d59afa438e2cb88cc024d6b19232236e1e Mon Sep 17 00:00:00 2001 From: Melody Horn / boringcactus Date: Sat, 12 Jun 2021 21:06:06 -0600 Subject: stub out basic implementation --- src/urls/mod.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/urls/mod.rs (limited to 'src/urls') 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], + }, +} -- cgit v1.2.3