restructre

This commit is contained in:
2023-05-24 15:36:38 +02:00
parent 9dc43d2d32
commit 05b65b2f67
7 changed files with 69 additions and 71 deletions

View File

@ -21,9 +21,8 @@ use crate::model::{
mod admin;
mod auth;
mod cal;
mod cox;
mod faq;
mod misc;
fn amount_days_to_show(is_cox: bool) -> i64 {
if is_cox {
@ -143,8 +142,7 @@ pub fn start(db: SqlitePool) -> Rocket<Build> {
.mount("/auth", auth::routes())
.mount("/cox", cox::routes())
.mount("/admin", admin::routes())
.mount("/faq", faq::routes())
.mount("/cal", cal::routes())
.mount("/", misc::routes())
.mount("/public", FileServer::from("static/"))
.register("/", catchers![unauthorized_error])
.attach(Template::fairing())