From 131f4380156ef05076b98e8b08d67143e3414466 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 15 Jun 2022 02:33:48 -0700 Subject: refactor(modules): new style mod --- src/modules.rs | 36 ++++++++++++++++++++++++++++++++++++ src/modules/mod.rs | 36 ------------------------------------ 2 files changed, 36 insertions(+), 36 deletions(-) create mode 100644 src/modules.rs delete mode 100644 src/modules/mod.rs (limited to 'src') 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 . +// Copyright (C) 2022-2022 Fuwn +// +// 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 . +// +// Copyright (C) 2022-2022 Fuwn +// 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, + ); +} diff --git a/src/modules/mod.rs b/src/modules/mod.rs deleted file mode 100644 index 5515a85..0000000 --- a/src/modules/mod.rs +++ /dev/null @@ -1,36 +0,0 @@ -// This file is part of Locus . -// Copyright (C) 2022-2022 Fuwn -// -// 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 . -// -// Copyright (C) 2022-2022 Fuwn -// 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, - ); -} -- cgit v1.2.3