sa2kit 1.6.45 → 1.6.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -341,7 +341,7 @@ var init_masterpiecesConfigService = __esm({
|
|
|
341
341
|
if (configCache && now - configCacheTime < CONFIG_CACHE_DURATION) {
|
|
342
342
|
return configCache;
|
|
343
343
|
}
|
|
344
|
-
const response = await fetch("/api/
|
|
344
|
+
const response = await fetch("/api/showmasterpiece/config");
|
|
345
345
|
if (!response.ok) {
|
|
346
346
|
throw new Error("\u83B7\u53D6\u914D\u7F6E\u5931\u8D25");
|
|
347
347
|
}
|
|
@@ -351,7 +351,7 @@ var init_masterpiecesConfigService = __esm({
|
|
|
351
351
|
return config;
|
|
352
352
|
};
|
|
353
353
|
updateConfig = async (configData) => {
|
|
354
|
-
const response = await fetch("/api/
|
|
354
|
+
const response = await fetch("/api/showmasterpiece/config", {
|
|
355
355
|
method: "PUT",
|
|
356
356
|
headers: {
|
|
357
357
|
"Content-Type": "application/json"
|
|
@@ -367,7 +367,7 @@ var init_masterpiecesConfigService = __esm({
|
|
|
367
367
|
return updatedConfig;
|
|
368
368
|
};
|
|
369
369
|
resetConfig = async () => {
|
|
370
|
-
const response = await fetch("/api/
|
|
370
|
+
const response = await fetch("/api/showmasterpiece/config", {
|
|
371
371
|
method: "DELETE"
|
|
372
372
|
});
|
|
373
373
|
if (!response.ok) {
|