✨ Adds index.html
This commit is contained in:
@@ -78,7 +78,7 @@ pub async fn get(id: &str, meta: ReqMeta, state: &State<AppState>) -> Result<Nam
|
||||
}
|
||||
}
|
||||
|
||||
NamedFile::open(Path::new(state.image_path.as_str()))
|
||||
NamedFile::open(Path::new(state.static_dir.as_str()).join("image.png"))
|
||||
.await
|
||||
.map_err(|_| Status::InternalServerError)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user