mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-21 11:59:48 -05:00
feat(config): allow omitting MIME settings from the config
This commit is contained in:
parent
87d2423d1a
commit
48063d736a
1 changed files with 2 additions and 0 deletions
|
@ -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>,
|
||||
|
|
Loading…
Reference in a new issue