Initial Rocket commit

This commit is contained in:
2024-07-14 18:33:58 +01:00
parent 12f77ce9af
commit 0fbd04e791
4 changed files with 1907 additions and 11 deletions

14
src/main.rs Normal file
View File

@@ -0,0 +1,14 @@
#[macro_use] extern crate rocket;
use rocket_dyn_templates::{context, Template};
#[get("/")]
fn index() -> Template {
let context = context! {};
Template::render("index", context)
}
#[launch]
fn rocket() -> _ {
rocket::build().mount("/", routes![index])
.attach(Template::fairing())
}