start with the admin panel
parent
f950141d4d
commit
de6949a3d1
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue