aboutsummaryrefslogtreecommitdiff
path: root/src/contrib
diff options
context:
space:
mode:
authorMelody Horn / boringcactus <melody@boringcactus.com>2021-06-12 23:24:33 -0600
committerMelody Horn / boringcactus <melody@boringcactus.com>2021-06-12 23:24:33 -0600
commit4c8940569e5729213b7eee6f3d5be39b745b697b (patch)
tree20935676f7a14ad12752ec98b65db9f067fba239 /src/contrib
parent582124d59afa438e2cb88cc024d6b19232236e1e (diff)
downloadtosin-4c8940569e5729213b7eee6f3d5be39b745b697b.tar.gz
tosin-4c8940569e5729213b7eee6f3d5be39b745b697b.zip
actually implement the easy example
Diffstat (limited to 'src/contrib')
-rw-r--r--src/contrib/admin/site/urls.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/contrib/admin/site/urls.rs b/src/contrib/admin/site/urls.rs
index 5e81c4e..ef23d55 100644
--- a/src/contrib/admin/site/urls.rs
+++ b/src/contrib/admin/site/urls.rs
@@ -1,3 +1,7 @@
-use crate::urls::Path;
+use crate::http::{Filter, Reply};
+use crate::urls::{UrlMap, path};
-pub const URL_PATTERNS: &[Path] = &[];
+pub fn urls() -> UrlMap {
+ path::end().map(|| Reply::into_response("bruh"))
+ .boxed()
+}