You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iassure-wx-old/backend/src/services/regions.service.ts

19 lines
407 B

import configService, { WxConfig, WxRegion } from './config.service';
export function getRegions(): WxConfig['regions'] {
return configService.getConfig().regions;
}
export function getRegion(identifier: string): WxRegion | undefined {
const regions = getRegions();
const region = regions.find(rg => rg.identifier == identifier);
return region;
}
export default {
getRegions,
getRegion,
};