{"size": 1046, "ext": "js", "max_stars_repo_path": "src/actions/issue/index.js", "max_stars_repo_name": "geniuspom/YNU-Survey", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/actions/issue/index.js", "max_issues_repo_name": "geniuspom/YNU-Survey", "max_issues_repo_issues_event_min_datetime": "2020-09-07T16:47:01.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-03T22:57:42.000Z", "max_forks_repo_path": "src/actions/issue/index.js", "max_forks_repo_name": "geniuspom/YNU-Faq-Modern", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 10, "max_forks_count": null, "avg_line_length": 23.2444444444, "max_line_length": 93, "alphanum_fraction": 0.6596558317}
import { RSAA } from 'redux-api-middleware'

export const SubmitIssue = (formdata) => ({

  [RSAA]: {
    endpoint: `http://api.yournextu.com/api/addissue`,
    method: 'POST',
    types: ['LOAD_NewIssue_REQUEST', 'LOAD_NewIssue_SUCCESS', 'LOAD_NewIssue_FAILURE'],
    body: formdata,
  }

})

export const GetIssue = (issue_id) => ({

  [RSAA]: {
    endpoint: `http://api.yournextu.com/api/viewissue/${issue_id}`,
    method: 'GET',
    types: ['LOAD_GetIssue_REQUEST', 'LOAD_GetIssue_SUCCESS', 'LOAD_GetIssue_FAILURE'],
  }

})

export const SubmitReply = (formdata) => ({

  [RSAA]: {
    endpoint: `http://api.yournextu.com/api/replyissue`,
    method: 'POST',
    types: ['LOAD_ReplyIssue_REQUEST', 'LOAD_ReplyIssue_SUCCESS', 'LOAD_ReplyIssue_FAILURE'],
    body: formdata,
  }

})

export const TestUpload = (formdata) => ({

  [RSAA]: {
    endpoint: `http://api.yournextu.com/api/testmultiupload`,
    method: 'POST',
    types: ['LOAD_TestMulti_REQUEST', 'LOAD_TestMulti_SUCCESS', 'LOAD_TestMulti_FAILURE'],
    body: formdata,
  }

})
