aboutsummaryrefslogtreecommitdiff
path: root/src/urls
diff options
context:
space:
mode:
Diffstat (limited to 'src/urls')
-rw-r--r--src/urls/mod.rs17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/urls/mod.rs b/src/urls/mod.rs
index 1acf186..45720b6 100644
--- a/src/urls/mod.rs
+++ b/src/urls/mod.rs
@@ -1,16 +1,5 @@
-use crate::http::{Request, Response};
+pub use warp::path;
-pub type View = fn(Request) -> Response;
+use crate::http::Response;
-pub enum Path {
- View {
- url: &'static str,
- view: View,
- name: &'static str,
- },
-
- Include {
- url: &'static str,
- content: &'static [Path],
- },
-}
+pub type UrlMap = warp::filters::BoxedFilter<(Response,)>;