You've already forked AstralRinth
forked from didirus/AstralRinth
Start mods page
This commit is contained in:
12
src/routes/mod_editor.rs
Normal file
12
src/routes/mod_editor.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use actix_web::{web, HttpResponse, get, post};
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user