#[macro_use] extern crate rocket; #[cfg(test)] mod tests; mod session; mod message; use rocket::response::content::Html; use rocket_dyn_templates::Template; #[get("/")] fn index() -> Html<&'static str> { Html(r#"Set a Message or Use Sessions."#) } #[launch] fn rocket() -> _ { rocket::build() .attach(Template::fairing()) .mount("/", routes![index]) .mount("/message", message::routes()) .mount("/session", session::routes()) }