2020-07-28 23:09:34 +05:30
|
|
|
/* eslint-disable @gitlab/require-i18n-strings */
|
|
|
|
import axios from '~/lib/utils/axios_utils';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
updateGenericActive({ endpoint, params }) {
|
|
|
|
return axios.put(endpoint, params);
|
|
|
|
},
|
2021-01-29 00:20:46 +05:30
|
|
|
updateTestAlert({ endpoint, data, token }) {
|
2020-07-28 23:09:34 +05:30
|
|
|
return axios.post(endpoint, data, {
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'application/json',
|
2021-01-29 00:20:46 +05:30
|
|
|
Authorization: `Bearer ${token}`,
|
2020-07-28 23:09:34 +05:30
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
};
|