Moved the parsing logic to backend as suggested.

This commit is contained in:
Owaise Imdad committed 2025-04-29 12:47:24 +05:30
1 parent b2fd9b1e89
commit bd8554707d
10 files changed
+165 -103

No files matched your search

+7 -2
View File
@@ -1090,8 +1090,13 @@ class NetworkService {
// Create bulk monitors
// ************************************
async createBulkMonitors({ monitors }) {
return this.axiosInstance.post(`/monitors/bulk`, monitors);
async createBulkMonitors(formData) {
const response = await this.axiosInstance.post(`/monitors/bulk`, formData, {
headers: {
"Content-Type": "multipart/form-data",
},
});
return response.data;
}
// ************************************