use correct API endpoint (oops)

This commit is contained in:
Tao Bojlen 2018-09-03 23:31:53 +02:00
parent e1237fba01
commit e522117c2a

View file

@ -1,7 +1,7 @@
import fetch from 'cross-fetch';
// const API_ROOT = "https://fediverse.space/api/v1/"
const API_ROOT = "http://localhost:8000/api/v1/"
const API_ROOT = "https://fediverse.space/api/v1/"
// const API_ROOT = "http://localhost:8000/api/v1/"
export const getFromApi = (path: string): Promise<any> => {
const domain = API_ROOT.endsWith("/") ? API_ROOT : API_ROOT + "/";