~/selfhut

selfhut/src/main.rs -rw-r--r-- 348 B
94e2262d — arthurmelton main page 2 years ago
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[macro_use] extern crate rocket;
mod git;
mod index;
mod config;

use rocket_dyn_templates::Template;
use rocket::fs::FileServer;
use rocket::fs::relative;

#[launch]
fn rocket() -> _ {
    rocket::build()
        .mount("/", routes![index::index])
        .mount("/", FileServer::from(relative!("static")))
        .attach(Template::fairing())
}