aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ApiData.java
diff options
context:
space:
mode:
authorRoman / Linnea Gräf <roman.graef@gmail.com>2023-07-21 09:28:48 +0200
committerGitHub <noreply@github.com>2023-07-21 09:28:48 +0200
commit34835697e889799e2b4e97c3bbf0ea73c04d5a64 (patch)
tree421de44a9dcff26b44bab18fcde9ed89ef066f28 /src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ApiData.java
parent3184880b31e9dc8d8985411468112c6b49e5b480 (diff)
downloadnotenoughupdates-34835697e889799e2b4e97c3bbf0ea73c04d5a64.tar.gz
notenoughupdates-34835697e889799e2b4e97c3bbf0ea73c04d5a64.tar.bz2
notenoughupdates-34835697e889799e2b4e97c3bbf0ea73c04d5a64.zip
Use ursa-minor as API proxy (#762)
* Use ursa-minor as API proxy * Allow setting a ursa server url * Make client aware of x-ursa-expires * Make profile data syncer work using legacy api * Add better header support * Add manual call functionality * Improve callUrsa to allow for raw strings * Save tokens better and add logs on http failure status codes * Remove API key requirement for PV * Make museum in pv also use ursa
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ApiData.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ApiData.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ApiData.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ApiData.java
index 6d93b98d..ef871b83 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ApiData.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ApiData.java
@@ -127,6 +127,15 @@ public class ApiData {
@ConfigEditorText
public String moulberryCodesApi = "moulberry.codes";
+
+ @Expose
+ @ConfigOption(
+ name = "Ursa Minor Proxy",
+ desc = "§4Do §lNOT §r§4change this, unless you know exactly what you are doing"
+ )
+ @ConfigEditorText
+ public String ursaApi = "https://ursa.notenoughupdates.org/";
+
public String getCommitApiUrl() {
return String.format("https://api.github.com/repos/%s/%s/commits/%s", repoUser, repoName, repoBranch);
}