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.
|
@@ -347,7 +347,7 @@ var init_masterpiecesConfigService = chunkZ6ZWNWWR_js.__esm({
|
|
|
347
347
|
if (configCache && now - configCacheTime < CONFIG_CACHE_DURATION) {
|
|
348
348
|
return configCache;
|
|
349
349
|
}
|
|
350
|
-
const response = await fetch("/api/
|
|
350
|
+
const response = await fetch("/api/showmasterpiece/config");
|
|
351
351
|
if (!response.ok) {
|
|
352
352
|
throw new Error("\u83B7\u53D6\u914D\u7F6E\u5931\u8D25");
|
|
353
353
|
}
|
|
@@ -357,7 +357,7 @@ var init_masterpiecesConfigService = chunkZ6ZWNWWR_js.__esm({
|
|
|
357
357
|
return config;
|
|
358
358
|
};
|
|
359
359
|
exports.updateConfig = async (configData) => {
|
|
360
|
-
const response = await fetch("/api/
|
|
360
|
+
const response = await fetch("/api/showmasterpiece/config", {
|
|
361
361
|
method: "PUT",
|
|
362
362
|
headers: {
|
|
363
363
|
"Content-Type": "application/json"
|
|
@@ -373,7 +373,7 @@ var init_masterpiecesConfigService = chunkZ6ZWNWWR_js.__esm({
|
|
|
373
373
|
return updatedConfig;
|
|
374
374
|
};
|
|
375
375
|
exports.resetConfig = async () => {
|
|
376
|
-
const response = await fetch("/api/
|
|
376
|
+
const response = await fetch("/api/showmasterpiece/config", {
|
|
377
377
|
method: "DELETE"
|
|
378
378
|
});
|
|
379
379
|
if (!response.ok) {
|