aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-04-20 00:08:45 -0700
committerFuwn <[email protected]>2022-04-20 00:08:45 -0700
commitf555391d27b2ed283b600b07ff303e8e24dec069 (patch)
tree3970a1926d1c62bcf641dc6f28cd3e17f8d402c4 /src
parentrefactor(macros): crate batch mount file macro (diff)
downloadlocus-f555391d27b2ed283b600b07ff303e8e24dec069.tar.xz
locus-f555391d27b2ed283b600b07ff303e8e24dec069.zip
fix(macros): rename macro to page
Diffstat (limited to 'src')
-rw-r--r--src/macros.rs2
-rw-r--r--src/main.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/macros.rs b/src/macros.rs
index 7d7761f..ce2c403 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -84,7 +84,7 @@ macro_rules! mount_file {
}
#[macro_export]
-macro_rules! batch_mount_file {
+macro_rules! batch_mount_page {
($router:ident,$(($path:literal, $description:literal, $file:literal),)*) => {
$(
mount_page!($router, $path, $description, $file);
diff --git a/src/main.rs b/src/main.rs
index 4d7e781..1b185e9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -166,7 +166,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
"This Gemini capsule's icon",
"favicon.txt"
);
- batch_mount_file!(
+ batch_mount_page!(
router,
("/", "This Gemini capsule's homepage", "index"),
("/contact", "Many ways to contact Fuwn", "contact"),