Can upload ISO files
This commit is contained in:
@ -5,6 +5,7 @@ use std::fmt::{Display, Formatter};
|
||||
use std::io::ErrorKind;
|
||||
|
||||
pub mod auth_controller;
|
||||
pub mod iso_controller;
|
||||
pub mod server_controller;
|
||||
|
||||
/// Custom error to ease controller writing
|
||||
@ -58,4 +59,10 @@ impl From<std::num::ParseIntError> for HttpErr {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<tempfile::PersistError> for HttpErr {
|
||||
fn from(value: tempfile::PersistError) -> Self {
|
||||
HttpErr { err: value.into() }
|
||||
}
|
||||
}
|
||||
|
||||
pub type HttpResult = Result<HttpResponse, HttpErr>;
|
||||
|
Reference in New Issue
Block a user