import { FETCH_LESSONS } from '../constants/lessons';

export function fetchLessons() {
  return {
    type: FETCH_LESSONS,
    api: true,
    auth: true,
    payload: {
      method: 'GET',
      url: '/lessons'
    }
  };
}
