Start mods page

This commit is contained in:
Jai A
2020-05-16 22:37:02 -07:00
parent 4b4889d5f2
commit f80f161886
12 changed files with 204 additions and 3 deletions

12
src/routes/mod_editor.rs Normal file
View File

@@ -0,0 +1,12 @@
use actix_web::{web, HttpResponse, get, post};
use handlebars::*;
#[get("modeditor")]
pub async fn mod_editor_get(hb: web::Data<Handlebars<'_>>) -> HttpResponse {
let data = json!({
"name": "Handlebars"
});
let body = hb.render("mod_editor", &data).unwrap();
HttpResponse::Ok().body(body)
}