Staging Test

This commit is contained in:
Jai A
2020-06-20 18:19:19 -07:00
parent cb9751be04
commit 906196bac3
11 changed files with 145 additions and 9 deletions

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

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