debian-mirror-gitlab/app/assets/javascripts/api/api_utils.js

6 lines
188 B
JavaScript
Raw Normal View History

2021-03-08 18:12:59 +05:30
import { joinPaths } from '../lib/utils/url_utility';
export function buildApiUrl(url) {
return joinPaths('/', gon.relative_url_root || '', url.replace(':version', gon.api_version));
}