|
|
@ -45,6 +45,7 @@ async fn rocket() -> _ {
|
|
|
|
routes![get_challenge, login, post_login, success, logout, testing],
|
|
|
|
routes![get_challenge, login, post_login, success, logout, testing],
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.mount("/css", FileServer::from(relative!("styles/css")))
|
|
|
|
.mount("/css", FileServer::from(relative!("styles/css")))
|
|
|
|
|
|
|
|
.mount("/", FileServer::from(relative!("static")).rank(1))
|
|
|
|
.attach(Template::custom(move |engines| {
|
|
|
|
.attach(Template::custom(move |engines| {
|
|
|
|
use tera::Value;
|
|
|
|
use tera::Value;
|
|
|
|
let (catalogs, langs) = load_catalogs().unwrap();
|
|
|
|
let (catalogs, langs) = load_catalogs().unwrap();
|
|
|
|