aboutsummaryrefslogtreecommitdiff
path: root/src/contrib/admin/site
diff options
context:
space:
mode:
authorMelody Horn / boringcactus <melody@boringcactus.com>2021-06-13 13:39:02 -0600
committerMelody Horn / boringcactus <melody@boringcactus.com>2021-06-13 13:39:02 -0600
commitcc7d316e588c21de1023d6a76d4ea5e7b893977a (patch)
tree47586de87551cf41756fc9f1f02a30b439251a60 /src/contrib/admin/site
parent6a2f8ab0b2c7028636ddf06a7dd776f5f8b3ace6 (diff)
downloadtosin-cc7d316e588c21de1023d6a76d4ea5e7b893977a.tar.gz
tosin-cc7d316e588c21de1023d6a76d4ea5e7b893977a.zip
macro based url map definition
Diffstat (limited to 'src/contrib/admin/site')
-rw-r--r--src/contrib/admin/site/urls.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/contrib/admin/site/urls.rs b/src/contrib/admin/site/urls.rs
index ef23d55..d6537bc 100644
--- a/src/contrib/admin/site/urls.rs
+++ b/src/contrib/admin/site/urls.rs
@@ -1,7 +1,8 @@
-use crate::http::{Filter, Reply};
-use crate::urls::{UrlMap, path};
+use crate::http::Reply;
+use crate::urls::{UrlMap, url_map};
pub fn urls() -> UrlMap {
- path::end().map(|| Reply::into_response("bruh"))
- .boxed()
+ url_map! {
+ => || Reply::into_response("bruh"),
+ }
}