From cc7d316e588c21de1023d6a76d4ea5e7b893977a Mon Sep 17 00:00:00 2001 From: Melody Horn / boringcactus Date: Sun, 13 Jun 2021 13:39:02 -0600 Subject: macro based url map definition --- src/contrib/admin/site/urls.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/contrib/admin/site') 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"), + } } -- cgit v1.2.3