{"size": 348, "ext": "js", "max_stars_repo_path": "src/modules/ajax/Ajax.model.js", "max_stars_repo_name": "buscador-de-quadrinhos/buscador-de-quadrinhos.github.io", "max_stars_repo_stars_event_min_datetime": "2019-04-18T12:32:19.000Z", "max_stars_repo_stars_event_max_datetime": "2019-04-18T12:32:19.000Z", "max_issues_repo_path": "src/ajax/Ajax.model.js", "max_issues_repo_name": "livrosbaratinhos/livrosbaratinhos.github.io", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/ajax/Ajax.model.js", "max_forks_repo_name": "livrosbaratinhos/livrosbaratinhos.github.io", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.4, "max_line_length": 40, "alphanum_fraction": 0.4425287356}
const AjaxModel = function Ajax($http) {
    function get (url, params) {
        if (!params) {
            params = {};
        }
        return $http({
            method: "GET",
            url: url,
            params: params
        });
    }

    return {
        get: get
    };
};

AjaxModel.$inject = ["$http"];

export default AjaxModel;