Generate thumbnails before API starts up

Clients can now request a thumbnail by specifying a size on the image
request.
This commit is contained in:
Cameron Cordes
2020-07-15 12:06:50 -04:00
parent ca761f605b
commit 7d369aab5c
5 changed files with 305 additions and 8 deletions

View File

@@ -60,6 +60,7 @@ impl FromRequest for Claims {
#[derive(Deserialize)]
pub struct ThumbnailRequest {
pub path: String,
pub size: Option<String>,
}
#[derive(Deserialize)]