🏗 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

@@ -90,7 +90,6 @@ export const getComicBooks = (options) => async (dispatch) => {
},
})
.then((response) => {
console.log(response);
dispatch({
type: IMS_RECENT_COMICS_FETCHED,
data: response.data,
@@ -145,7 +144,6 @@ export const fetchVolumeGroups = () => (dispatch) => {
method: "GET",
})
.then((data) => {
console.log(data);
dispatch({
type: IMS_COMIC_BOOK_GROUPS_FETCHED,
data,

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);
};