call api from same domain

closes #157
This commit is contained in:
Collin Barrett 2018-02-18 16:32:56 -06:00
parent 0a135e249f
commit 707ca30954
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IFilterListsS
filterLists: [],
loading: true
};
fetch("https://api.filterlists.com/v1/lists")
fetch("https://filterlists.com/api/v1/lists")
.then(response => response.json() as Promise<IFilterListSummaryDto[]>)
.then(data => {
this.setState({

View file

@ -22,7 +22,7 @@ export default class ListDetailsModal extends React.Component<any, any> {
}
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<IFilterListDetailsDto[]>)
.then(data => {
this.setState({