aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/main.rs b/src/main.rs
index 1b185e9..8be963f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -154,19 +154,19 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
});
time_mounts("static", &mut time_mount, || {
- mount_file!(
+ batch_mount!(
+ "files",
router,
- "/robots.txt",
- "Crawler traffic manager, for robots, not humans",
- "robots.txt"
- );
- mount_file!(
- router,
- "/favicon.txt",
- "This Gemini capsule's icon",
- "favicon.txt"
+ (
+ "/robots.txt",
+ "Crawler traffic manager, for robots, not humans",
+ "robots.txt"
+ ),
+ ("/favicon.txt", "This Gemini capsule's icon", "favicon.txt"),
);
- batch_mount_page!(
+
+ batch_mount!(
+ "pages",
router,
("/", "This Gemini capsule's homepage", "index"),
("/contact", "Many ways to contact Fuwn", "contact"),