add config for max views, expiration and advanced

This commit is contained in:
2022-03-01 15:24:17 +01:00
parent ef39f9ec0b
commit d112eba8fe
9 changed files with 220 additions and 133 deletions

View File

@@ -0,0 +1,10 @@
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
pub struct Status {
pub version: String,
pub max_size: usize,
pub max_views: usize,
pub max_expiration: usize,
pub allow_advanced: bool,
}