Skip to content

Commit

Permalink
feat: Allow overriding curseproxy URL
Browse files Browse the repository at this point in the history
  • Loading branch information
RealityAnomaly authored and NikkyAI committed Jan 3, 2022
1 parent 23614ea commit 8e4a064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/kotlin/voodoo/curse/CurseClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ object CurseClient {
section: String? = null,
slug: String? = null
): List<SlugIdPair> = withContext(MDCContext() + Dispatchers.IO) {
val url = "https://curse.nikky.moe/graphql"
val url = System.getenv("VOODOO_CURSEPROXY_URL") ?: "https://curse.nikky.moe/graphql"
val filters = mutableListOf("gameId: 432")
gameVersions?.takeIf { it.isNotEmpty() }?.let {
filters += it.joinToString("\", \"", "gameVersionList: [\"", "\"]")
Expand Down

0 comments on commit 8e4a064

Please sign in to comment.