1
0
Files
AstralRinth/src/routes/mod_editor.rs
2020-05-31 22:20:16 -07:00

13 lines
309 B
Rust

use actix_web::{get, web, HttpResponse};
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-page", &data).unwrap();
HttpResponse::Ok().body(body)
}