Как получить параметры в таких функциях?
//Below function need to receive the passed parameter(id)???
static apiConfig = {
actions: {
loadAllUsers: {
method: 'get',
url: '/api/v1/users',
dataTransformer: (response) => {
return new JsonApiResponseConverter(response.data).formattedResponse
}
}
}
}
Функция на модели vuex orm. Так его называют из vue компонента
User.api().loadAllUsers(id)