Make scheme of the proxy configurable

(Aids in local development where TLS certs are unavailable)
This commit is contained in:
Preston Maness 2023-06-11 23:47:28 -05:00 committed by Yarmo Mackenbach
parent f7c90edd7d
commit 0166a30e3c

View file

@ -42,7 +42,7 @@ const generateProxyURL = (type, data, opts) => {
queryStrings.push(`${key}=${encodeURIComponent(data[key])}`)
})
return `https://${opts.proxy.hostname}/api/2/get/${type}?${queryStrings.join(
return `${opts.proxy.scheme}://${opts.proxy.hostname}/api/2/get/${type}?${queryStrings.join(
'&'
)}`
}