From af90ce3578cc46045d96938c9193f4ab8b9faccc Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 12 Sep 2022 14:19:39 +0200 Subject: Use an uploads endpoint path --- src/config.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/config.rs') 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"; -- cgit v1.2.3-71-g8e6c