- removed ids in api enpoints as they are in JSON objects being sent
This commit is contained in:
@@ -16,7 +16,7 @@ const getWiFiSettings = async () => {
|
||||
};
|
||||
|
||||
const updateWifiSettings = async (wifiConfig: WifiConfig) => {
|
||||
const response = await fetch(`${camBase}/api/update-config?id=ModemAndWifiManager-wifi`, {
|
||||
const response = await fetch(`${camBase}/api/update-config`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(wifiConfig),
|
||||
@@ -38,7 +38,7 @@ const getModemSettings = async () => {
|
||||
};
|
||||
|
||||
const updateModemSettings = async (modemConfig: ModemConfig) => {
|
||||
const response = await fetch(`${camBase}/api/update-config?id=ModemAndWifiManager-modem`, {
|
||||
const response = await fetch(`${camBase}/api/update-config`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(modemConfig),
|
||||
|
||||
Reference in New Issue
Block a user