|
|
|
@ -2,8 +2,8 @@ use std::fs::File;
|
|
|
|
|
use std::io::{BufReader, Read};
|
|
|
|
|
use std::path::PathBuf;
|
|
|
|
|
|
|
|
|
|
use actix_web::{get, HttpResponse};
|
|
|
|
|
use actix_web::web::{Data, Path};
|
|
|
|
|
use actix_web::{get, HttpResponse};
|
|
|
|
|
|
|
|
|
|
use handlebars::Handlebars;
|
|
|
|
|
use log::info;
|
|
|
|
@ -22,8 +22,6 @@ pub async fn get(id: Path<String>, hb: Data<Handlebars<'_>>) -> Result<HttpRespo
|
|
|
|
|
buffer.read_to_string(&mut file_contents)?;
|
|
|
|
|
info!("read to buffer");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let data = json!({
|
|
|
|
|
"replayid": id,
|
|
|
|
|
});
|
|
|
|
|