debian-mirror-gitlab/app/assets/javascripts/alerts_settings/services/index.js
2021-02-22 17:27:13 +05:30

16 lines
419 B
JavaScript

/* eslint-disable @gitlab/require-i18n-strings */
import axios from '~/lib/utils/axios_utils';
export default {
updateGenericActive({ endpoint, params }) {
return axios.put(endpoint, params);
},
updateTestAlert({ endpoint, data, token }) {
return axios.post(endpoint, data, {
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${token}`,
},
});
},
};