feat(config): allow omitting MIME settings from the config

This commit is contained in:
Orhun Parmaksız 2022-05-21 06:25:23 +03:00
parent 87d2423d1a
commit 48063d736a
No known key found for this signature in database
GPG key ID: F83424824B3E4B90

View file

@ -51,8 +51,10 @@ pub struct PasteConfig {
/// Default file extension.
pub default_extension: String,
/// Media type override options.
#[serde(default)]
pub mime_override: Vec<MimeMatcher>,
/// Media type blacklist.
#[serde(default)]
pub mime_blacklist: Vec<String>,
/// Allow duplicate uploads
pub duplicate_files: Option<bool>,