Skip to content
index.js 543 B
Newer Older
const BASE_API_URL = "http://localhost:8081/"

export default {
  fetchGroupsModel (input) {
    let url = BASE_API_URL + 'groups?groupId=' + input.selectedGroupId + '&tab=' + input.selectedTab + '&paginatorPageSize=' + input.paginatorPageSize + '&paginatorPage=' + input.paginatorPage;
    return fetch(url, {
      method: 'GET',
      cache: 'no-cache',
      credentials: 'include',
      headers: {
        'Content-Type': 'application/json',
        'Accept': 'application/json',
    }).then(response => response.json());