🏗 Wiring up the AirDCPP settings call

This commit is contained in:
2021-11-14 21:43:47 -08:00
parent ced3457ea2
commit 305c172be7
10 changed files with 87 additions and 15 deletions

View File

@@ -0,0 +1,13 @@
import axios from "axios";
import { IExtractionOptions } from "threetwo-ui-typings";
import {} from "../constants/action-types";
import { SETTINGS_SERVICE_BASE_URI } from "../constants/endpoints";
export const saveSettings = (settingsObject) => async (dispatch) => {
const result = await axios({
url: `${SETTINGS_SERVICE_BASE_URI}/saveSettings`,
method: "POST",
data: settingsObject,
});
console.log(result);
};