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