aboutsummaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-04-16 01:57:11 -0700
committerFuwn <[email protected]>2022-04-16 01:57:11 -0700
commitbf5a6841ffeb29ffcf718b8fbf80fea91074c58e (patch)
treebd529f566412f92b6f4f609832252874acee422a /src/macros.rs
parentfeat: add explicit licensing terms (diff)
downloadlocus-bf5a6841ffeb29ffcf718b8fbf80fea91074c58e.tar.xz
locus-bf5a6841ffeb29ffcf718b8fbf80fea91074c58e.zip
refactor: route for future use
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,