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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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));
}