rascul 2 years ago
parent 95a2fa25a0
commit b5c6ad1309

@ -2,8 +2,8 @@ use std::fs::File;
use std::io::{BufReader, Read}; use std::io::{BufReader, Read};
use std::path::PathBuf; use std::path::PathBuf;
use actix_web::{get, HttpResponse};
use actix_web::web::{Data, Path}; use actix_web::web::{Data, Path};
use actix_web::{get, HttpResponse};
use handlebars::Handlebars; use handlebars::Handlebars;
use log::info; 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)?; buffer.read_to_string(&mut file_contents)?;
info!("read to buffer"); info!("read to buffer");
let data = json!({ let data = json!({
"replayid": id, "replayid": id,
}); });

Loading…
Cancel
Save