Files
AstralRinth/src/routes/mod_create.rs
2020-06-20 18:19:19 -07:00

12 lines
310 B
Rust

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)
}