aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-04-06 21:02:41 -0700
committerFuwn <[email protected]>2022-04-06 21:02:41 -0700
commite84763934a44a69425c7514acbeaa7b0721c3fb1 (patch)
treec2da4586b640fc394247d3e98babf8039201bb8c /src
parentfix: for windmark 0.1.9 (diff)
downloadlocus-e84763934a44a69425c7514acbeaa7b0721c3fb1.tar.xz
locus-e84763934a44a69425c7514acbeaa7b0721c3fb1.zip
feat: route fixing
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 1bcc572..28f8ff3 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -131,6 +131,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.into(),
)
}));
+ router.set_fix_path(true);
router.mount(
"/uptime",
Box::new(move |context| {
@@ -158,7 +159,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
mount_file!(router, "/robots.txt", "robots.txt");
mount_file!(router, "/favicon.txt", "favicon.txt");
mount_page!(router, "/", "index");
- mount_page!(router, "", "index");
mount_page!(router, "/contact", "contact");
mount_page!(router, "/donate", "donate");
mount_page!(router, "/gemini", "gemini");