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();