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")]
let rocket = tera::config(rocket);
#[cfg(feature = "rest")]
let rocket = rest::config(rocket);
//#[cfg(feature = "rest")]
//let rocket = rest::config(rocket);
rocket
}

View File

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