UNPKG

@genshin-kit/core

Version:

An API wrapper for fetching player data of Genshin Impact from any servers.

14 lines 498 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._getApiEndpoint = void 0; function _getApiEndpoint() { switch (this.serverType) { case 'os': return 'https://bbs-api-os.mihoyo.com/game_record/genshin/api/'; case 'cn': default: return 'https://api-takumi-record.mihoyo.com/game_record/app/genshin/api/'; } } exports._getApiEndpoint = _getApiEndpoint; //# sourceMappingURL=_getApiEndpoint.js.map