import { WxRegion } from '@shared/types/config.types'; import { WxData } from '@shared/types/wx.types'; import axios from 'axios'; async function getRegions(): Promise { const response = await axios.get('/api/regions'); return response.data; } async function getWxData(region: string): Promise { const response = await axios.get(`/api/regions/${region}/wx`); return response.data; } export default { getRegions, getWxData, };