async function req()

in src/generator.js [16:38]


async function req({ url, method, params, data }) {
    const config = {
        method,
        baseURL: JIRA_API,
        url,
        data,
        params,
        headers: {
          Authorization: `Basic ${JIRA_AUTH}`,
          'Content-Type': 'application/json'
        }
    }

    let res 

    try {
      res = await axios(config)
    } catch (e) {
      handleError(e)
    }

    return res
}