{"size": 365, "ext": "js", "max_stars_repo_path": "src/services/feedbackService.js", "max_stars_repo_name": "pavelKozlov/feedback-overview-dashboard", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/services/feedbackService.js", "max_issues_repo_name": "pavelKozlov/feedback-overview-dashboard", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/services/feedbackService.js", "max_forks_repo_name": "pavelKozlov/feedback-overview-dashboard", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.4705882353, "max_line_length": 73, "alphanum_fraction": 0.6849315068}
import axios from 'axios';
import { API_ENDPOINT } from '../constants/appConstants.js';

const instance = axios.create({
  baseURL: API_ENDPOINT,
});

/**
 * Fetches the feedback items.
 *
 * @returns {Promise<T>}
 */
const fetchItems = () =>
  instance.get('example/apidemo.json').then((response) => response.data);

export const feedbackService = { fetchItems };
