MCPcopy
hub / github.com/subquery/subql / getAxiosInstance

Function getAxiosInstance

packages/cli/src/controller/deploy-controller.ts:25–36  ·  view source on GitHub ↗
(url: string, authToken?: string)

Source from the content-addressed store, hash-verified

23import {buildProjectKey, errorHandle} from '../utils';
24
25function 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
38export async function createDeployment(
39 org: string,

Callers 8

createDeploymentFunction · 0.85
promoteDeploymentFunction · 0.85
deleteDeploymentFunction · 0.85
deploymentStatusFunction · 0.85
projectsInfoFunction · 0.85
updateDeploymentFunction · 0.85
ipfsCID_validateFunction · 0.85
imageVersionsFunction · 0.85

Calls 1

createMethod · 0.45

Tested by

no test coverage detected