From 707ca30954ceeb0203511ef20b6c81bf6ea462c4 Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Sun, 18 Feb 2018 16:32:56 -0600 Subject: [PATCH] call api from same domain closes #157 --- src/FilterLists.Web/ClientApp/components/Home.tsx | 2 +- src/FilterLists.Web/ClientApp/components/ListDetailsModal.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index c00bfa6cc..2803da4b8 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -17,7 +17,7 @@ export class Home extends React.Component, IFilterListsS filterLists: [], loading: true }; - fetch("https://api.filterlists.com/v1/lists") + fetch("https://filterlists.com/api/v1/lists") .then(response => response.json() as Promise) .then(data => { this.setState({ diff --git a/src/FilterLists.Web/ClientApp/components/ListDetailsModal.tsx b/src/FilterLists.Web/ClientApp/components/ListDetailsModal.tsx index 52cfcbac8..703ce70dd 100644 --- a/src/FilterLists.Web/ClientApp/components/ListDetailsModal.tsx +++ b/src/FilterLists.Web/ClientApp/components/ListDetailsModal.tsx @@ -22,7 +22,7 @@ export default class ListDetailsModal extends React.Component { } openModal() { - fetch(`https://api.filterlists.com/v1/lists/${this.state.listId}`) + fetch(`https://filterlists.com/api/v1/lists/${this.state.listId}`) .then(response => response.json() as Promise) .then(data => { this.setState({