summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-12 12:19:39 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-09-12 12:19:39 +0000
commitaf90ce3578cc46045d96938c9193f4ab8b9faccc (patch)
tree2f8e732504a46edfb8965692243b006de3c5ee44 /src/config.rs
parent1e9f99b092346f4153fb5880b274778ce1195e6d (diff)
Use an uploads endpoint path
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 5783656..fd85d91 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1,3 +1,6 @@
+// TODO: Everything here must be a std::env
+
pub static PAGE_LIMIT: i64 = 20;
pub const MAX_UPLOAD_FILE_SIZE: u64 = 1024 * 1024; // 1 MB
pub const SAVE_FILE_BASE_PATH: &str = "./uploads";
+pub const UPLOADS_ENDPOINT: &str = "http://localhost:3000/uploads";