diff options
| author | Fuwn <[email protected]> | 2022-04-20 00:08:21 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-04-20 00:08:21 -0700 |
| commit | 904ac81e7e754e87e0d64de59a75d38af63efdca (patch) | |
| tree | 23387a69a3d66999eb40255b4b0ea46d78036860 /src/main.rs | |
| parent | refactor(main): create flexible rount mount timer (diff) | |
| download | locus-904ac81e7e754e87e0d64de59a75d38af63efdca.tar.xz locus-904ac81e7e754e87e0d64de59a75d38af63efdca.zip | |
refactor(macros): crate batch mount file macro
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/main.rs b/src/main.rs index 9abb28c..4d7e781 100644 --- a/src/main.rs +++ b/src/main.rs @@ -166,28 +166,28 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { "This Gemini capsule's icon", "favicon.txt" ); - mount_page!(router, "/", "This Gemini capsule's homepage", "index"); - mount_page!(router, "/contact", "Many ways to contact Fuwn", "contact"); - mount_page!(router, "/donate", "Many ways to donate to Fuwn", "donate"); - mount_page!( + batch_mount_file!( router, - "/gemini", - "Information and resources for the Gemini protocol", - "gemini" - ); - mount_page!( - router, - "/gopher", - "Information and resources for the Gopher protocol", - "gopher" - ); - mount_page!(router, "/interests", "A few interests of Fuwn", "interests"); - mount_page!(router, "/skills", "A few skills of Fuwn", "skills"); - mount_page!( - router, - "/licensing", - "The licensing terms of this Gemini capsule", - "licensing" + ("/", "This Gemini capsule's homepage", "index"), + ("/contact", "Many ways to contact Fuwn", "contact"), + ("/donate", "Many ways to donate to Fuwn", "donate"), + ( + "/gemini", + "Information and resources for the Gemini protocol", + "gemini" + ), + ( + "/gopher", + "Information and resources for the Gopher protocol", + "gopher" + ), + ("/interests", "A few interests of Fuwn", "interests"), + ("/skills", "A few skills of Fuwn", "skills"), + ( + "/licensing", + "The licensing terms of this Gemini capsule", + "licensing" + ), ); }); |