Add route to create inbox entries
This commit is contained in:
@@ -42,6 +42,7 @@ pub struct ServerConstraints {
|
||||
pub token_max_inactivity: LenConstraints,
|
||||
pub account_name: LenConstraints,
|
||||
pub movement_label: LenConstraints,
|
||||
pub inbox_entry_label: LenConstraints,
|
||||
pub file_allowed_types: &'static [&'static str],
|
||||
}
|
||||
|
||||
@@ -53,6 +54,7 @@ impl Default for ServerConstraints {
|
||||
token_max_inactivity: LenConstraints::new(3600, 3600 * 24 * 365),
|
||||
account_name: LenConstraints::not_empty(50),
|
||||
movement_label: LenConstraints::not_empty(200),
|
||||
inbox_entry_label: LenConstraints::not_empty(200),
|
||||
file_allowed_types: &[
|
||||
"image/jpeg",
|
||||
"image/png",
|
||||
|
Reference in New Issue
Block a user