You've already forked AstralRinth
forked from didirus/AstralRinth
13 lines
311 B
Rust
13 lines
311 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_editor", &data).unwrap();
|
|
|
|
HttpResponse::Ok().body(body)
|
|
}
|