add test notificaiton button and methods

This commit is contained in:
Alex Holliday committed 2025-06-10 12:07:31 +08:00
1 parent 1ed317d0cb
commit e6493df881
8 files changed
+135 -90

No files matched your search

+4 -11
View File
@@ -703,18 +703,11 @@ class NetworkService {
* @returns {Promise<AxiosResponse>} The response from the axios POST request.
*/
async testNotification(config) {
return this.axiosInstance.post(
"/notifications/test-webhook",
{
platform: config.platform,
...config.payload,
return this.axiosInstance.post("/notifications/test", config.notification, {
headers: {
"Content-Type": "application/json",
},
{
headers: {
"Content-Type": "application/json",
},
}
);
});
}
/**