blob: 1acdf5eb02fa745ebe89145007bf6fa2a8317f4f [file] [log] [blame]
'use strict'
var urljoin = require('url-join'),
config = require('./config')
function buildUrl(options) {
return urljoin(
config.baseUrl,
options.client.orgId,
options.client.appId,
options.type, (typeof options.uuidOrName === 'string') ? options.uuidOrName : ""
)
}
module.exports = buildUrl