Merge branch 'feat/fe/create-status-page' into feat/fe/create-status

This commit is contained in:
Alex Holliday committed 2025-02-01 08:34:12 -08:00
commit 4911126d88
9 files changed
+231 -14

No files matched your search

+20
View File
@@ -861,6 +861,26 @@ class NetworkService {
"https://api.github.com/repos/bluewave-labs/bluewave-uptime/releases/latest"
);
}
async getStatusPageByUrl(config) {
const { url, authToken } = config;
return this.axiosInstance.get(`/status-page/${url}`, {
headers: {
Authorization: `Bearer ${authToken}`,
"Content-Type": "application/json",
},
});
}
async createStatusPage(config) {
const { url, authToken, data } = config;
return this.axiosInstance.post(`/status-page/${url}`, data, {
headers: {
Authorization: `Bearer ${authToken}`,
"Content-Type": "application/json",
},
});
}
}
export default NetworkService;