feat(content): configure discovery provider scope

This commit is contained in:
objz committed 2026-08-04 19:45:53 +02:00
1 parent 94b71fdc4e
commit 52f074ce46
11 files changed
+124 -67

No files matched your search

+6
View File
@@ -18,6 +18,12 @@ const SHADERS_CLASS_ID: u32 = 6552;
const DATA_PACKS_CLASS_ID: u32 = 6945;
pub const MODPACKS_CLASS_ID: u32 = 4471;
pub fn api_key() -> Option<&'static str> {
option_env!("CURSEFORGE_API_KEY")
.map(str::trim)
.filter(|key| !key.is_empty())
}
#[derive(Debug, Deserialize)]
struct ApiResponse<T> {
data: T,