be able to use both tera and svelte

This commit is contained in:
2023-07-16 20:07:38 +02:00
parent 2f6464ff84
commit eb4c4bb558
4 changed files with 9 additions and 7 deletions

View File

@ -1,7 +1,7 @@
use rocket::{fs::FileServer, Build, Rocket};
pub fn config(rocket: Rocket<Build>) -> Rocket<Build> {
rocket.mount("/beta", FileServer::from("svelte/build"))
rocket.mount("/", FileServer::from("svelte/build").rank(0))
}
//#[cfg(test)]