Change API and Refactoring a handler function

This commit is contained in:
mohadeseh safari committed 2025-05-19 19:47:11 -04:00
1 parent aaba9e8d42
commit d5d3e14d96
2 files changed
+30 -25

No files matched your search

+2 -2
View File
@@ -1162,7 +1162,7 @@ class NetworkService {
// If emailConfig is provided, use the new endpoint with direct parameters
if (emailConfig) {
return this.axiosInstance.post(`/api/v1/settings/test-email`, {
return this.axiosInstance.post(`/settings/test-email`, {
to,
systemEmailHost: emailConfig.systemEmailHost,
systemEmailPort: emailConfig.systemEmailPort,
@@ -1175,7 +1175,7 @@ class NetworkService {
}
// Fallback to original behavior for backward compatibility
return this.axiosInstance.post(`/monitors/test-email`, { to });
return this.axiosInstance.post(`/settings/test-email`, { to });
}
}