🏗 Wiring up the AirDCPP settings call
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user