|
|
@ -11,6 +11,7 @@ use serde_json::json;
|
|
|
|
|
|
|
|
|
|
|
|
use crate::Result;
|
|
|
|
use crate::Result;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// load up and play the replay
|
|
|
|
#[get("/+{id}")]
|
|
|
|
#[get("/+{id}")]
|
|
|
|
pub async fn get(id: Path<String>, hb: Data<Handlebars<'_>>) -> Result<HttpResponse> {
|
|
|
|
pub async fn get(id: Path<String>, hb: Data<Handlebars<'_>>) -> Result<HttpResponse> {
|
|
|
|
let mut path = PathBuf::from("replays");
|
|
|
|
let mut path = PathBuf::from("replays");
|
|
|
|