add toast and start adding postgres

This commit is contained in:
2026-04-10 20:45:53 +02:00
parent 9b65c5f62b
commit 23ccd3f793
16 changed files with 425 additions and 36 deletions

25
src/config.rs Normal file
View 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
}
}
}