From a3b3b03c8b9a5fe4831675101fff2675b01cdfee Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 16 Jul 2023 19:10:22 +0200 Subject: [PATCH] push --- src/main.rs | 4 ++-- src/tera/mod.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index e5afec2..afa64f2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 } diff --git a/src/tera/mod.rs b/src/tera/mod.rs index 7a4e6bc..a86a159 100644 --- a/src/tera/mod.rs +++ b/src/tera/mod.rs @@ -118,6 +118,7 @@ pub fn config(rocket: Rocket) -> Rocket { .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::())