added file expiration and fleshed out the API a bit

This commit is contained in:
xenofem 2022-04-30 01:38:26 -04:00
parent cc0aaaab94
commit f52aa0f08b
9 changed files with 296 additions and 103 deletions

View file

@ -30,14 +30,14 @@ use actix_web::{
use actix_files::HttpRange;
use crate::DownloadableFile;
use crate::store::StoredFile;
// This is copied substantially from actix-files, with some tweaks
pub(crate) struct DownloadingFile {
pub(crate) file: File,
pub(crate) storage_path: PathBuf,
pub(crate) info: DownloadableFile,
pub(crate) info: StoredFile,
}
impl DownloadingFile {