restructre
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user