aboutsummaryrefslogtreecommitdiff
path: root/src/modules.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-06-15 02:33:48 -0700
committerFuwn <[email protected]>2022-06-15 02:33:48 -0700
commit131f4380156ef05076b98e8b08d67143e3414466 (patch)
treeac875fcb0f7c935ee54821bb5cbc4e3e441d41cf /src/modules.rs
parentfeat(contact): move contact to json (diff)
downloadlocus-131f4380156ef05076b98e8b08d67143e3414466.tar.xz
locus-131f4380156ef05076b98e8b08d67143e3414466.zip
refactor(modules): new style mod
Diffstat (limited to 'src/modules.rs')
-rw-r--r--src/modules.rs36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/modules.rs b/src/modules.rs
new file mode 100644
index 0000000..5515a85
--- /dev/null
+++ b/src/modules.rs
@@ -0,0 +1,36 @@
+// This file is part of Locus <https://github.com/gemrest/locus>.
+// Copyright (C) 2022-2022 Fuwn <[email protected]>
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, version 3.
+//
+// This program is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+// Copyright (C) 2022-2022 Fuwn <[email protected]>
+// SPDX-License-Identifier: GPL-3.0-only
+
+mod blog;
+mod contact;
+mod random;
+mod remarks;
+mod robots;
+mod router;
+pub mod search;
+mod sitemap;
+mod skills;
+mod r#static;
+mod uptime;
+
+pub fn module(router: &mut windmark::Router) {
+ crate::statelesses!(
+ router, uptime, sitemap, search, remarks, blog, random, r#static, router,
+ robots, skills, contact,
+ );
+}