- Add GetStatusPageByUrl to networkservice

- Make static status page and actual status config page toggleable
- Remove the sidebar nested menu item entry for status page tabs
- Pass context to status config page which contains general settings and contents tabs
- Status config page is now one submission and one validation
This commit is contained in:
Shemy Gan committed 2024-12-16 20:18:05 -05:00
1 parent 5045eafb8e
commit 219bcd4361
7 files changed
+120 -108

No files matched your search

+12
View File
@@ -846,6 +846,18 @@ class NetworkService {
"https://api.github.com/repos/bluewave-labs/bluewave-uptime/releases/latest"
);
}
async getStatusPageByUrl(config){
const params = new URLSearchParams();
params.append("url", encodeURIComponent(config.url));
return this.axiosInstance.get(`/status-page?${params.toString()}`, {
headers: {
Authorization: `Bearer ${config.authToken}`,
"Content-Type": "application/json",
},
});
}
}
export default NetworkService;