diff options
author | metamuffin <metamuffin@disroot.org> | 2023-02-13 19:48:42 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-02-13 19:48:42 +0100 |
commit | c4d99ef7307c238244c975e45ae1e24c923538b6 (patch) | |
tree | a80ce5de4547fff8347aeaa3e4b9cf48adfe75b2 /src/main.rs | |
parent | ba4d782687b5eb8d91fd881a7cb9d0adce7dd9f0 (diff) | |
download | metamuffin-website-c4d99ef7307c238244c975e45ae1e24c923538b6.tar metamuffin-website-c4d99ef7307c238244c975e45ae1e24c923538b6.tar.bz2 metamuffin-website-c4d99ef7307c238244c975e45ae1e24c923538b6.tar.zst |
prepare for blog stuff
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index b0822e8..b1b5147 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,11 +3,13 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2023 metamuffin <metamuffin.org> */ +pub mod blog; pub mod layout; pub mod pages; pub mod source; pub mod wellknown; +use blog::*; use pages::*; use rocket::{catchers, fairing::AdHoc, http::Header, routes}; use source::*; @@ -16,7 +18,6 @@ use wellknown::*; #[tokio::main] async fn main() { env_logger::init_from_env("LOG"); - let _ = rocket::build() .attach(AdHoc::on_response("set server header", |_req, res| { res.set_header(Header::new("server", "blub")); @@ -32,12 +33,13 @@ async fn main() { r_projects, r_pgp_key, r_source, + r_blog, + r_blog_index, r_wellknown_security, r_wellknown_matrix_server, r_wellknown_matrix_client, ], ) - // .mount("/", FileServer::from("modules")) .register("/", catchers![r_catch]) .launch() .await |