This commit is contained in:
2019-06-05 09:23:25 +02:00
parent d73655af40
commit 014184509b
+2
View File
@@ -14,6 +14,8 @@ export default {
console.debug(id)
return axios.get(`api/ads/${id}`).then(res => res.data)
},
//offset is the index position of the first element to start requesting at
fetchAds: ({ limit = "", order = "", keyword = "", offset = 1 }) => {
console.debug("--- fetchAds" + offset, limit, order, keyword)
return axios.get('api/ads', { params: { offset, limit, order, keyword } })