(url: string, authToken?: string)
| 23 | import {buildProjectKey, errorHandle} from '../utils'; |
| 24 | |
| 25 | function getAxiosInstance(url: string, authToken?: string): Axios { |
| 26 | const headers: Record<string, string> = {}; |
| 27 | |
| 28 | if (authToken) { |
| 29 | headers.Authorization = `Bearer ${authToken}`; |
| 30 | } |
| 31 | |
| 32 | return axios.create({ |
| 33 | baseURL: url, |
| 34 | headers, |
| 35 | }); |
| 36 | } |
| 37 | |
| 38 | export async function createDeployment( |
| 39 | org: string, |
no test coverage detected