added files to admin panel WIP

pull/1/head
kirbylife 2019-12-15 17:41:56 -06:00
parent 096e6d4f01
commit 54fb4d93b8
2 changed files with 15 additions and 0 deletions

15
src/admin.rs 100644
View File

@ -0,0 +1,15 @@
#[path = "misc.rs"]
pub mod misc;
extern crate rocket;
extern crate rocket_contrib;
use misc::get_context;
use rocket_contrib::templates::Template;
#[get("/")]
pub fn index() -> Template {
let context = get_context();
Template::render("base", context)
}

View File