blob: d4ee247ade6015af0347764cd5dbd527cf15f277 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import axios from '../lib/utils/axios_utils';
import { buildApiUrl } from './api_utils';
const TAG_PATH = '/api/:version/projects/:id/repository/tags/:tag_name';
export function getTag(id, tagName) {
const url = buildApiUrl(TAG_PATH)
.replace(':id', encodeURIComponent(id))
.replace(':tag_name', encodeURIComponent(tagName));
return axios.get(url);
}
|