Add network service methods
This commit is contained in:
1 parent
e8a4496199
commit
eb79eef2a2
1 file changed
+15
@@ -1034,6 +1034,21 @@ class NetworkService {
|
|||||||
// Fallback to original behavior for backward compatibility
|
// Fallback to original behavior for backward compatibility
|
||||||
return this.axiosInstance.post(`/settings/test-email`, { to });
|
return this.axiosInstance.post(`/settings/test-email`, { to });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async createNotification(config) {
|
||||||
|
const { notification } = config;
|
||||||
|
return this.axiosInstance.post(`/notifications`, notification);
|
||||||
|
}
|
||||||
|
|
||||||
|
async getNotificationsByTeamId(config) {
|
||||||
|
const { teamId } = config;
|
||||||
|
return this.axiosInstance.get(`/notifications/team/${teamId}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async deleteNotificationById(config) {
|
||||||
|
const { id } = config;
|
||||||
|
return this.axiosInstance.delete(`/notifications/${id}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default NetworkService;
|
export default NetworkService;
|
||||||
|
|||||||
Reference in new issue
Block a user