From bf5a6841ffeb29ffcf718b8fbf80fea91074c58e Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 16 Apr 2022 01:57:11 -0700 Subject: refactor: route for future use --- src/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/macros.rs') diff --git a/src/macros.rs b/src/macros.rs index 0eaa2f1..8507d97 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -44,7 +44,7 @@ macro_rules! success { macro_rules! mount_page { ($router:ident, $at:literal, $description:literal, $file:literal) => { (*crate::ROUTES.lock().unwrap()) - .insert($at.to_string(), $description.to_string()); + .insert($at.to_string(), crate::route::Route::new($description)); ($router).mount( $at, @@ -62,7 +62,7 @@ macro_rules! mount_page { macro_rules! mount_file { ($router:ident, $at:literal, $description:literal, $file:literal) => { (*crate::ROUTES.lock().unwrap()) - .insert($at.to_string(), $description.to_string()); + .insert($at.to_string(), crate::route::Route::new($description)); ($router).mount( $at, -- cgit v1.2.3