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

fetch_versions.js « services « frontend « content - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e65f396ce91a35c21354e8ccbfae510425562cd8 (plain)
1
2
3
4
5
6
7
8
export function getVersions() {
  return fetch('https://docs.gitlab.com/versions.json')
    .then((response) => response.json())
    .then((data) => {
      return data[0];
    })
    .catch((error) => console.error(error)); // eslint-disable-line no-console
}