@@ -35,7 +35,7 @@ def build_public_config() -> dict:
3535 "description" : settings .description ,
3636 "explain" : settings .page_explain ,
3737 "upload_size" : settings .upload_size ,
38- "allowedFileTypes " : settings .allowed_file_types ,
38+ "allowed_file_types " : settings .allowed_file_types ,
3939 "expire_style" : settings .expire_style ,
4040 "enable_chunk" : settings .enable_chunk ,
4141 "open_upload" : settings .open_upload ,
@@ -50,22 +50,22 @@ def build_public_meta() -> dict:
5050 return {
5151 "version" : APP_VERSION ,
5252 "api" : {
53- "legacyConfig " : "/" ,
54- "publicConfig " : "/api/v1/config" ,
53+ "legacy_config " : "/" ,
54+ "public_config " : "/api/v1/config" ,
5555 "health" : "/health" ,
5656 },
5757 "features" : {
58- "chunkUpload " : bool (settings .enable_chunk ),
59- "guestUpload " : bool (settings .open_upload ),
60- "adminAddressVisible " : bool (normalize_public_flag (settings .show_admin_addr )),
61- "expirationModes " : settings .expire_style ,
58+ "chunk_upload " : bool (settings .enable_chunk ),
59+ "guest_upload " : bool (settings .open_upload ),
60+ "admin_address_visible " : bool (normalize_public_flag (settings .show_admin_addr )),
61+ "expiration_modes " : settings .expire_style ,
6262 },
6363 "limits" : {
6464 "upload_size" : settings .upload_size ,
65- "allowedFileTypes " : settings .allowed_file_types ,
66- "maxSaveSeconds " : settings .max_save_seconds ,
67- "uploadWindowMinutes " : settings .upload_minute ,
68- "uploadWindowCount " : settings .upload_count ,
65+ "allowed_file_types " : settings .allowed_file_types ,
66+ "max_save_seconds " : settings .max_save_seconds ,
67+ "upload_window_minutes " : settings .upload_minute ,
68+ "upload_window_count " : settings .upload_count ,
6969 },
7070 }
7171
0 commit comments