UNPKG

jsreport-studio

Version:
11 lines (8 loc) 264 B
import { rootPath } from '../lib/configuration.js' const join = (a, b) => { const slashless = b[0] === '/' ? b.substring(1) : b return a[a.length - 1] === '/' ? a + slashless : a + '/' + slashless } export default (url) => { return join(rootPath(), url) }