apiUrl
This commit is contained in:
parent
b4548c7a6f
commit
29c2777f41
@ -1,7 +1,7 @@
|
|||||||
const apiUrl = "LACONIC_HOSTED_CONFIG_app_api_url";
|
const apiUrl = "LACONIC_HOSTED_CONFIG_app_api_url";
|
||||||
|
|
||||||
export const fetchAllStatuses = async () => {
|
export const fetchAllStatuses = async () => {
|
||||||
const res = await fetch(baseUrl);
|
const res = await fetch(apiUrl);
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
throw new Error('Network response was not ok')
|
throw new Error('Network response was not ok')
|
||||||
}
|
}
|
||||||
@ -13,7 +13,7 @@ export const fetchLogs = async (id: string) => {
|
|||||||
if (!id) {
|
if (!id) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
let url = `${baseUrl}/log/${id}`
|
let url = `${apiUrl}/log/${id}`
|
||||||
const res = await fetch(url);
|
const res = await fetch(url);
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
throw new Error('Network response was not ok')
|
throw new Error('Network response was not ok')
|
||||||
|
Loading…
Reference in New Issue
Block a user