- removed ids in api enpoints as they are in JSON objects being sent
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user