This commit is contained in:
Alex Holliday committed 2025-02-24 14:33:25 -08:00
1 parent c94c0261ab
commit 88fc158d9f
23 files changed
+251 -228

No files matched your search

+6 -6
View File
@@ -801,7 +801,7 @@ class NetworkService {
"https://api.github.com/repos/bluewave-labs/bluewave-uptime/releases/latest",
{
headers: {
Authorization: null,
Authorization: null, // No authorization header for this request
},
}
);
@@ -923,7 +923,7 @@ class NetworkService {
});
}
async getDistributedStatusPageByUrl(config) {
const { authToken, url, type, timeFrame } = config;
const { url, type, timeFrame } = config;
const params = new URLSearchParams();
params.append("type", type);
params.append("timeFrame", timeFrame);
@@ -931,7 +931,6 @@ class NetworkService {
`/status-page/distributed/${url}?${params.toString()}`,
{
headers: {
Authorization: `Bearer ${authToken}`,
"Content-Type": "application/json",
},
}
@@ -985,18 +984,19 @@ class NetworkService {
URL.revokeObjectURL(form.logo.src);
}
}
if (isCreate) {
return this.axiosInstance.post(`/status-page`, fd);
return this.axiosInstance.post(`/status-page`, fd, {});
}
return this.axiosInstance.put(`/status-page`, fd);
return this.axiosInstance.put(`/status-page`, fd, {});
}
async deleteStatusPage(config) {
const { url } = config;
const encodedUrl = encodeURIComponent(url);
return this.axiosInstance.delete(`/status-page/${encodedUrl}`);
return this.axiosInstance.delete(`/status-page/${encodedUrl}`, {});
}
}