UNPKG

poe-api-manager

Version:
14 lines (13 loc) 568 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Generates a URL based on league and type. poe.ninja (currencyView) API is used. * @param league The league for which the URL is generated. * @param type The type of data for which the URL is generated. * @param typeName The name of the type of data for which the URL is generated. * @returns The generated URL. */ function urlGenerator(league, typeName, type) { return `https://poe.ninja/api/data/${typeName}?league=${league}&type=${type}`; } exports.default = urlGenerator;