superdesk/superdesk-client-core

View on GitHub
scripts/core/api/url-resolver-helpers.ts

Summary

Maintainability
A
0 mins
Test Coverage
import {appConfig} from 'appConfig';

export function basejoin(path: string) {
    const baseUrl = appConfig.server.url;

    return baseUrl + (path.indexOf('/') === 0 ? path : '/' + path);
}