use actix_web::{Error, get, web, HttpResponse}; use handlebars::Handlebars; use serde_json::Value; use crate::render_error; #[get("/submit")] pub async fn get(hb: web::Data>) -> Result { Ok(HttpResponse::Ok().body(render_error!(hb, hb.render("submit", &Value::Null)))) }