metamuffin's personal website


About 1744957321579 milliseconds have passed since midnight of the january the first in 1970.
------------------------------------------------------
pub mod projects;
pub mod source;
pub mod wellknown;

use blog::*;
use error::*;
use pages::*;
use projects::*;
use rocket::{catchers, fairing::AdHoc, fs::FileServer, http::Header, routes};
use source::*;
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"));
            Box::pin(async {})
        }))
        .manage(prepare_source())
        .mount("/blog/assets", FileServer::from(ASSET_ROOT))
        .mount(
            "/",
            routes![
                r_root,
                r_about,
                r_contact,
                r_projects,
                r_pgp_key,