@blizzard-api/wow
Version:
A series of helpers to interact with the World of Warcraft Blizzard API
27 lines (26 loc) • 578 B
JavaScript
import { wowBasePath } from "@blizzard-api/core";
//#region src/region/index.ts
/**
* Get a region by ID.
* @param regionId The region ID.
* @returns The region. See {@link RegionResponse}.
*/
function region(regionId) {
return {
namespace: "dynamic",
path: `${wowBasePath}/region/${regionId}`
};
}
/**
* Get a region index.
* @returns The region index. See {@link RegionIndexResponse}.
*/
function regionIndex() {
return {
namespace: "dynamic",
path: `${wowBasePath}/region/index`
};
}
//#endregion
export { region, regionIndex };
//# sourceMappingURL=index.js.map