Skip to content

Commit

Permalink
blank main.rs for now
Browse files Browse the repository at this point in the history
  • Loading branch information
extua committed Sep 26, 2024
1 parent 64a280a commit 7caecf8
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
#[macro_use] extern crate rocket;
use rocket::fs::{FileServer, relative};
use rocket_dyn_templates::Template;
// #[macro_use] extern crate rocket;
// use rocket::fs::{FileServer, relative};
// use rocket_dyn_templates::Template;


mod tera;
// mod tera;

#[get("/world")]
fn world() -> &'static str {
"Hello, world!"
}
// #[get("/world")]
// fn world() -> &'static str {
// "Hello, world!"
// }

#[launch]
fn rocket() -> _ {
rocket::build().mount("/hello", routes![world])
.mount("/tera", routes![tera::index, tera::hello, tera::about])
.register("/tera", catchers![tera::not_found])
.attach(Template::custom(|engines| {
tera::customize(&mut engines.tera);
}))
.mount("/assets", FileServer::from(relative!("/assets")))
}
// #[launch]
// fn rocket() -> _ {
// rocket::build().mount("/hello", routes![world])
// .mount("/tera", routes![tera::index, tera::hello, tera::about])
// .register("/tera", catchers![tera::not_found])
// .attach(Template::custom(|engines| {
// tera::customize(&mut engines.tera);
// }))
// .mount("/assets", FileServer::from(relative!("/assets")))
// }

0 comments on commit 7caecf8

Please sign in to comment.