import { postData, deleteData } from '../utils/APIUtils';
import { API_URLS } from '../constants/Constants';

export function sendSubscription(data, url = API_URLS.NOTIFICATIONS_SUBSCRIBE) {
    return postData(url, data);
}

export function deleteSubscription(data, url = API_URLS.NOTIFICATIONS_UNSUBSCRIBE) {
    return deleteData(url, data);
}

import { postData, deleteData } from '../utils/APIUtils';
import { API_URLS } from '../constants/Constants';

export function sendSubscription(data, url = API_URLS.NOTIFICATIONS_SUBSCRIBE) {
    return postData(url, data);
}

export function deleteSubscription(data, url = API_URLS.NOTIFICATIONS_UNSUBSCRIBE) {
    return postData(url, data);
}

Use post method instead of delete for unsubscribing
QS-1247: Use post method instead of delete for unsubscribing
