instance.get('/user?q=accountExpired:0&fields=firstname,lastname,username&sort=username&order=desc&offset=0&max=100')
.then((res) => {
resolve(res.data)
})
.catch((err) => {
reject(err)
})
})
if this code start from const data = ... then is a method that get data from url and then return data of it.
Обсуждают сегодня