7 lines
209 B
JavaScript
7 lines
209 B
JavaScript
|
export function getBaseURL (state) {
|
||
|
// https://public.carto.com/api/v4/
|
||
|
const username = state.config.user_name;
|
||
|
const host = state.config.account_host;
|
||
|
return `https://${username}.${host}/api/v4`;
|
||
|
}
|