aboutsummaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/macros.rs')
-rw-r--r--src/macros.rs4
1 files changed, 2 insertions, 2 deletions
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,