diff options
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 |