From de6949a3d1674ca89619ecabd4713eb29b2010bd Mon Sep 17 00:00:00 2001 From: kirbylife Date: Sun, 8 Dec 2019 17:07:49 -0600 Subject: [PATCH] start with the admin panel --- src/lib.rs | 0 src/main.rs | 2 ++ 2 files changed, 2 insertions(+) delete mode 100644 src/lib.rs diff --git a/src/lib.rs b/src/lib.rs deleted file mode 100644 index e69de29..0000000 diff --git a/src/main.rs b/src/main.rs index 4afde7e..43b1c3d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ #![feature(proc_macro_hygiene, decl_macro)] +pub mod admin; pub mod misc; pub mod models; pub mod schema; @@ -117,6 +118,7 @@ fn main() { rocket::ignite() .attach(Template::fairing()) .mount("/", routes![index, show_post]) + .mount("/admin", routes![admin::index]) .mount("/static", StaticFiles::from("static")) .register(catchers![not_found_404]) .launch();