{"size": 551, "ext": "js", "max_stars_repo_path": "WMIAdventure/frontend/src/js/api/endpoints/CardsEndpoints.js", "max_stars_repo_name": "emkarcinos/WMIAdventure", "max_stars_repo_stars_event_min_datetime": "2021-05-26T15:12:33.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-09T17:17:19.000Z", "max_issues_repo_path": "WMIAdventure/frontend/src/js/api/endpoints/CardsEndpoints.js", "max_issues_repo_name": "emkarcinos/WMIAdventure", "max_issues_repo_issues_event_min_datetime": "2021-05-27T05:41:23.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T21:50:54.000Z", "max_forks_repo_path": "WMIAdventure/frontend/src/js/api/endpoints/CardsEndpoints.js", "max_forks_repo_name": "emkarcinos/WMIAdventure", "max_forks_repo_forks_event_min_datetime": "2021-05-26T15:09:29.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-13T15:28:07.000Z"}
{"max_stars_count": 2, "max_issues_count": 558, "max_forks_count": 4, "avg_line_length": 32.4117647059, "max_line_length": 66, "alphanum_fraction": 0.6769509982}
import API_URL from "./API_URL";

/**
 * Holds all API endpoints to cards service.
 */
class CardsEndpoints {
    static main = API_URL + 'cards/';
    static effects = CardsEndpoints.main + 'card-effect/';
    static descriptions = CardsEndpoints.main + 'descriptions/';
    static levels = CardsEndpoints.main + 'card-level/';
    static byId = (id) => CardsEndpoints.main + id + '/';
    static effectById = (id) => CardsEndpoints.effects + id + '/';

    static proposedCards = `${API_URL}proposed-content/cards/`
}

export default CardsEndpoints;