diff options
| author | Fuwn <[email protected]> | 2022-04-16 01:57:11 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-04-16 01:57:11 -0700 |
| commit | bf5a6841ffeb29ffcf718b8fbf80fea91074c58e (patch) | |
| tree | bd529f566412f92b6f4f609832252874acee422a /src/macros.rs | |
| parent | feat: add explicit licensing terms (diff) | |
| download | locus-bf5a6841ffeb29ffcf718b8fbf80fea91074c58e.tar.xz locus-bf5a6841ffeb29ffcf718b8fbf80fea91074c58e.zip | |
refactor: route for future use
Diffstat (limited to 'src/macros.rs')
| -rw-r--r-- | src/macros.rs | 4 |
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, |