trc-client-core
Version:
The core of the TRC Client
9 lines (7 loc) • 500 B
JavaScript
import xhr from 'trc-client-core/src/utils/xhr';
import {createAction} from 'redux-actions'
import {MANAGEMENT_QUALIFICATION_REQUEST} from 'trc-client-core/src/constants/Endpoints';
import {SUBMIT_MANAGEMENT_QUALIFICATION_REQUEST} from 'trc-client-core/src/constants/ActionTypes';
export const submitManagementQualificationRequest = createAction(SUBMIT_MANAGEMENT_QUALIFICATION_REQUEST, (programCode, query) => {
return xhr.post(`${MANAGEMENT_QUALIFICATION_REQUEST}/${programCode}`, query);
});