Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « services « alerts_settings « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4df5ed425a5b125a7c6569c68aaa4f439f4f1a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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}`, // eslint-disable-line @gitlab/require-i18n-strings
      },
    });
  },
};