diff --git a/src/api/attraction.js b/src/api/attraction.js new file mode 100644 index 0000000..57c4586 --- /dev/null +++ b/src/api/attraction.js @@ -0,0 +1,15 @@ +import { localAxios } from "@/utils/http-commons"; + +const local = localAxios; + +function getArticles(contentTypeId, sidoCode, gugunCode, title, success, fail) { + //list + local + .get( + `/attraction/search?contentTypeId=${contentTypeId}&sidoCode=${sidoCode}&gugunCode=${gugunCode}&title=${title}` + ) + .then(success) + .catch(fail); +} + +export { getArticles };