valorant-api-types
Version:
A collection of documented endpoints and return types for the unofficial Valorant API
19 lines • 652 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.typeToPrefix = void 0;
function typeToPrefix(options) {
switch (options.type) {
case 'pd':
return `https://pd.${options.shard}.a.pvp.net/`;
case 'shared':
return `https://shared.${options.shard}.a.pvp.net/`;
case 'glz':
return `https://glz-${options.region}-1.${options.shard}.a.pvp.net/`;
case 'local':
return `https://127.0.0.1:${options.port}/`;
case 'other':
return '';
}
}
exports.typeToPrefix = typeToPrefix;
//# sourceMappingURL=ValorantEndpoint.js.map