- Updated existing components for the status page usage

- Add libraries for drag and drop
This commit is contained in:
Shemy Gan committed 2024-12-30 14:07:05 -05:00
1 parent 3e841b2e16
commit 031508ef9b
9 files changed
+231 -14

No files matched your search

+20
View File
@@ -846,6 +846,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;