- removed ids in api enpoints as they are in JSON objects being sent

This commit is contained in:
2025-11-10 09:05:08 +00:00
parent d57ad1003a
commit a734de6261
7 changed files with 14 additions and 10 deletions

View File

@@ -28,11 +28,11 @@ const updateDNSSettings = async (data: DNSSettingsType) => {
},
],
};
const response = await fetch(`${camBase}/api/update-config?id=GLOBAL--NetworkConfig`, {
const response = await fetch(`${camBase}/api/update-config`, {
method: "post",
body: JSON.stringify(dnsSettingsPayload),
});
if (!response.ok) throw new Error("cannot send to dns endpoint");
if (!response.ok) throw new Error("cannot send to DNS endpoint");
return response.json();
};