{"size": 528, "ext": "js", "max_stars_repo_path": "src/service/lessons.js", "max_stars_repo_name": "drwolf1999/new-unitsoft-intranet-FE", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/service/lessons.js", "max_issues_repo_name": "drwolf1999/new-unitsoft-intranet-FE", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/service/lessons.js", "max_forks_repo_name": "drwolf1999/new-unitsoft-intranet-FE", "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": 25.1428571429, "max_line_length": 73, "alphanum_fraction": 0.5303030303}
import axios from 'axios';
import RestAPI from '../constants/RestAPI.js';

// student 에 대한 Action 정의
export default {
    // Get
    getLessons(name) {
        return axios.post(RestAPI.SERVER_DOMAIN + 'lessons/search', name)
            .catch(error => {
                console.log(error);
            });
    },
    // Add
    addLesson(Lesson) {
        return axios.post(RestAPI.SERVER_DOMAIN + 'lessons/add', Lesson)
            .catch(error => {
                console.log(error);
            });
    },
    // Update
};