Want to contribute? Fork me on Codeberg.org!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
400 B

#[macro_use] extern crate rocket;
use rocket_dyn_templates::{Template, context};
#[get("/")]
fn index() -> Template {
Template::render("index", context! {
challenge: 114,
})
}
#[launch]
fn rocket() -> _ {
let config = rocket::Config::figment()
.merge(("port", 1313));
rocket::custom(config)
.mount("/", routes![index])
.attach(Template::fairing())
}