forked from Ruderverein-Donau-Linz/rowt
push
This commit is contained in:
parent
2375dd91de
commit
a3b3b03c8b
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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>())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user