aboutsummaryrefslogtreecommitdiff
path: root/src/modules.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-16 00:47:52 -0700
committerFuwn <[email protected]>2023-04-16 00:47:52 -0700
commit0a0e09102f2ee86e6d7f424ad6f7048e7583f527 (patch)
tree334eb370ff09deae2b7997592d60aab0bf6d3db9 /src/modules.rs
parentfix(timing): push module (what ?) (diff)
downloadlocus-0a0e09102f2ee86e6d7f424ad6f7048e7583f527.tar.xz
locus-0a0e09102f2ee86e6d7f424ad6f7048e7583f527.zip
refactor: make maros procedural
Diffstat (limited to 'src/modules.rs')
-rw-r--r--src/modules.rs51
1 files changed, 16 insertions, 35 deletions
diff --git a/src/modules.rs b/src/modules.rs
index 2d0b678..33afc88 100644
--- a/src/modules.rs
+++ b/src/modules.rs
@@ -16,38 +16,19 @@
// Copyright (C) 2022-2022 Fuwn <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only
-mod blog;
-mod contact;
-mod interests;
-mod random;
-mod remarks;
-// mod robots;
-mod api;
-mod cryptocurrency;
-mod router;
-pub mod search;
-mod sitemap;
-mod skills;
-mod r#static;
-mod stocks;
-mod uptime;
-
-pub fn module(router: &mut windmark::Router) {
- crate::statelesses!(
- router,
- uptime,
- sitemap,
- search,
- remarks,
- blog,
- random,
- r#static,
- router,
- skills,
- contact,
- interests,
- api,
- stocks,
- cryptocurrency,
- );
-}
+amenadiel::modules!(
+ uptime,
+ sitemap,
+ search,
+ remarks,
+ blog,
+ random,
+ r#static,
+ router,
+ skills,
+ contact,
+ interests,
+ api,
+ stocks,
+ cryptocurrency
+);