Fixed query params
This commit is contained in:
parent
a0ad82ffba
commit
5a2d91c515
|
@ -3,9 +3,13 @@ import store from '../store/modules/settings.js'
|
||||||
|
|
||||||
const apiUrl = 'https://users.service.development.therig.onlinefuelslabs.io'
|
const apiUrl = 'https://users.service.development.therig.onlinefuelslabs.io'
|
||||||
|
|
||||||
export function fetchList() {
|
export function fetchList(query) {
|
||||||
return axios.get(`${apiUrl}/account/search?page=1&limit=2000&platform=${store.state.platform}`)
|
const dto = {
|
||||||
// temporary fix. It seems query parameters are not going trhough as intended. Will have to look at backend?
|
'page': query.page,
|
||||||
|
'limit': query.limit,
|
||||||
|
'platform': query.platform || store.state.platform
|
||||||
|
}
|
||||||
|
return axios.get(`${apiUrl}/account/search`, { params: dto })
|
||||||
}
|
}
|
||||||
|
|
||||||
export function fetchAccount(id) {
|
export function fetchAccount(id) {
|
||||||
|
|
Loading…
Reference in New Issue