diff --git a/src/api/area.js b/src/api/area.js new file mode 100644 index 0000000..8d22e14 --- /dev/null +++ b/src/api/area.js @@ -0,0 +1,13 @@ +import { localAxios } from "@/utils/http-commons"; + +const local = localAxios; + +function getSido(success, fail) { + local.get(`/area/sido`).then(success).catch(fail); +} + +function getGugun(sidoCode, success, fail) { + local.get(`/area/sido?sidoCode=${sidoCode}`).then(success).catch(fail); +} + +export { getSido, getGugun };