add toast and start adding postgres
This commit is contained in:
25
src/config.rs
Normal file
25
src/config.rs
Normal file
@ -0,0 +1,25 @@
|
||||
#[cfg(feature = "server")]
|
||||
pub struct ServerConfig {
|
||||
pub upload_folder: String,
|
||||
}
|
||||
|
||||
#[cfg(feature = "server")]
|
||||
impl ServerConfig {
|
||||
pub fn load() -> Self {
|
||||
Self {
|
||||
upload_folder: "./test/".to_string()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct ClientConfig {
|
||||
pub upload_max_size: usize
|
||||
}
|
||||
|
||||
impl ClientConfig {
|
||||
pub fn load () -> Self {
|
||||
Self {
|
||||
upload_max_size: 1024 * 1024 * 1024 * 1 //1GB for testing
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user