This commit is contained in:
philipp 2023-07-16 19:10:22 +02:00
parent 2375dd91de
commit a3b3b03c8b
2 changed files with 3 additions and 2 deletions

View File

@ -26,8 +26,8 @@ async fn rocket() -> _ {
#[cfg(feature = "rowing-tera")] #[cfg(feature = "rowing-tera")]
let rocket = tera::config(rocket); let rocket = tera::config(rocket);
#[cfg(feature = "rest")] //#[cfg(feature = "rest")]
let rocket = rest::config(rocket); //let rocket = rest::config(rocket);
rocket rocket
} }

View File

@ -118,6 +118,7 @@ pub fn config(rocket: Rocket<Build>) -> Rocket<Build> {
.mount("/admin", admin::routes()) .mount("/admin", admin::routes())
.mount("/", misc::routes()) .mount("/", misc::routes())
.mount("/public", FileServer::from("static/")) .mount("/public", FileServer::from("static/"))
.mount("/beta", FileServer::from("svelte/build"))
.register("/", catchers![unauthorized_error]) .register("/", catchers![unauthorized_error])
.attach(Template::fairing()) .attach(Template::fairing())
.attach(AdHoc::config::<Config>()) .attach(AdHoc::config::<Config>())