{"size": 418, "ext": "js", "max_stars_repo_path": "src/utils/categoriesApi.js", "max_stars_repo_name": "nygilgp/readable-react-redux", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/utils/categoriesApi.js", "max_issues_repo_name": "nygilgp/readable-react-redux", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/utils/categoriesApi.js", "max_forks_repo_name": "nygilgp/readable-react-redux", "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": 19.0, "max_line_length": 50, "alphanum_fraction": 0.6291866029}
import { API_URL, AUTHORIZATION_PARAM } from './';

class categoriesApi {

	static getCategories() {
		return fetch(`${API_URL}/categories`, { 
			headers: { 
				'Authorization': `${AUTHORIZATION_PARAM}`,
				'Accept': 'application/json',
				'Content-Type': 'application/json'
			}
		})
		.then(res => res.json())
		.catch(error => {
			console.log(error);
			return error;
		});
	}

}

export default categoriesApi;