use correct API endpoint (oops)
This commit is contained in:
parent
e1237fba01
commit
e522117c2a
|
@ -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 + "/";
|
||||
|
|
Loading…
Reference in a new issue