Files
Modrinth-plus/src/routes/mod_editor.rs
2020-05-27 20:46:59 +02:00

12 lines
310 B
Rust

use actix_web::{web, HttpResponse, get};
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)
}