{"size": 562, "ext": "js", "max_stars_repo_path": "src/admin/audits/audits-service.js", "max_stars_repo_name": "kristianmandrup/jhipster-aurelia-boilerplate", "max_stars_repo_stars_event_min_datetime": "2016-09-27T02:57:54.000Z", "max_stars_repo_stars_event_max_datetime": "2019-05-13T21:26:24.000Z", "max_issues_repo_path": "src/admin/audits/audits-service.js", "max_issues_repo_name": "kristianmandrup/jhipster-aurelia-boilerplate", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/admin/audits/audits-service.js", "max_forks_repo_name": "kristianmandrup/jhipster-aurelia-boilerplate", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 5, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.48, "max_line_length": 58, "alphanum_fraction": 0.5658362989}
import $ from 'utils';
import {inject} from 'aurelia-framework';
import {Resource} from '../resource';
import 'fetch';

// TODO: add resource method
@inject(Resource)
export default class AuditsService {
  constructor(resource) {
    resource.fetch('management/jhipster/audits/:id', {}, {
      'get': {
          method: 'GET',
          isArray: true
      },
      'query': {
          method: 'GET',
          isArray: true,
          params: {fromDate: null, toDate: null}
      }
    }).then((response) => {
      console.log(response.json);
    });
  }
}
