This commit is contained in:
2024-06-05 22:58:38 +02:00
commit e0520968aa
9 changed files with 2069 additions and 0 deletions

17
src/main.rs Normal file
View File

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