From d2fb28efae63f51d31f5d8063021a2c4bfd9599d Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Sun, 27 Jun 2021 15:24:13 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=87=20Comicvine=20search=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/actions/fileops.actions.tsx | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/client/actions/fileops.actions.tsx b/src/client/actions/fileops.actions.tsx index 7c4fa39..2e6d5d5 100644 --- a/src/client/actions/fileops.actions.tsx +++ b/src/client/actions/fileops.actions.tsx @@ -115,10 +115,23 @@ export const fetchComicVineMatches = (searchPayload, options) => (dispatch) => { issue: issueSearchQuery.searchParams, series: seriesSearchQuery.searchParams, }); - axios.request({ - url: "", - method: "POST", - }); + axios + .request({ + url: "http://localhost:3080/api/comicvine/fetchseries", + method: "POST", + data: { + format: "json", + sort: "name%3Aasc", + query: issueSearchQuery.searchParams.searchTerms.name, + fieldList: "", + limit: "10", + offset: "5", + resources: "issue", + }, + }) + .then((response) => { + console.log("CV says to fuck off:", response); + }); return { issueSearchQuery, series: seriesSearchQuery.searchParams }; } catch (error) { console.log(error);