print the json for the response body for now

master
rascul 2 years ago
parent 38b48bdee3
commit bf7e5d925e

@ -2,6 +2,7 @@ use actix_multipart::Multipart;
use actix_web::{post, web, Error, HttpResponse};
use handlebars::Handlebars;
use serde_json::to_string_pretty;
use crate::WotLog;
@ -14,7 +15,7 @@ pub async fn post(
wotlog.parse_log()?;
//let body = hb.render("submit", &json!({})).unwrap();
let body = format!("{:#?}", wotlog);
let body = format!("{}", to_string_pretty(&wotlog.json)?);
Ok(HttpResponse::Ok().body(body))
}

Loading…
Cancel
Save