Add a route to upload update to the platform
This commit is contained in:
@ -13,6 +13,9 @@ pub const MAX_INACTIVITY_DURATION: u64 = 3600;
|
||||
/// Maximum session duration (1 day)
|
||||
pub const MAX_SESSION_DURATION: u64 = 3600 * 24;
|
||||
|
||||
/// Maximum firmware size (in bytes)
|
||||
pub const MAX_FIRMWARE_SIZE: usize = 50 * 1000 * 1000;
|
||||
|
||||
/// List of routes that do not require authentication
|
||||
pub const ROUTES_WITHOUT_AUTH: [&str; 2] =
|
||||
["/web_api/server/config", "/web_api/auth/password_auth"];
|
||||
|
Reference in New Issue
Block a user