comment
This commit is contained in:
@@ -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 } })
|
||||
|
||||
Reference in New Issue
Block a user