(code)
| 47 | }); |
| 48 | |
| 49 | export const getUfByCode = (code) => |
| 50 | axios.get(`${URL_UF}/${code}`).then((response) => { |
| 51 | response.data = addCapital(response.data); |
| 52 | return response; |
| 53 | }); |
| 54 | |
| 55 | export const getContiesByUf = async (uf) => { |
| 56 | const { data } = await axios.get(`${URL_UF}/${uf}/municipios`); |