@estation/create-cms-site 2.0.1 → 2.0.2
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { cmsV2Request } from "../utils/api-client.js";
|
|
2
2
|
export async function getSiteConfig() {
|
|
3
|
-
const config = await cmsV2Request("GET", "/site
|
|
3
|
+
const config = await cmsV2Request("GET", "/site/config");
|
|
4
4
|
return JSON.stringify(config, null, 2);
|
|
5
5
|
}
|
|
6
6
|
export async function updateSiteConfig(data) {
|
|
7
|
-
const config = await cmsV2Request("PUT", "/site
|
|
7
|
+
const config = await cmsV2Request("PUT", "/site/config", data);
|
|
8
8
|
return `Site configuration updated successfully.\n${JSON.stringify(config, null, 2)}`;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=site-config.js.map
|