start with the admin panel

pull/1/head
kirbylife 2019-12-08 17:07:49 -06:00
parent f950141d4d
commit de6949a3d1
2 changed files with 2 additions and 0 deletions

View File

View File

@ -1,5 +1,6 @@
#![feature(proc_macro_hygiene, decl_macro)] #![feature(proc_macro_hygiene, decl_macro)]
pub mod admin;
pub mod misc; pub mod misc;
pub mod models; pub mod models;
pub mod schema; pub mod schema;
@ -117,6 +118,7 @@ fn main() {
rocket::ignite() rocket::ignite()
.attach(Template::fairing()) .attach(Template::fairing())
.mount("/", routes![index, show_post]) .mount("/", routes![index, show_post])
.mount("/admin", routes![admin::index])
.mount("/static", StaticFiles::from("static")) .mount("/static", StaticFiles::from("static"))
.register(catchers![not_found_404]) .register(catchers![not_found_404])
.launch(); .launch();