debian-mirror-gitlab/app/assets/javascripts/api/api_utils.js
2021-03-08 18:12:59 +05:30

5 lines
188 B
JavaScript

import { joinPaths } from '../lib/utils/url_utility';
export function buildApiUrl(url) {
return joinPaths('/', gon.relative_url_root || '', url.replace(':version', gon.api_version));
}