MCPcopy Index your code
hub / github.com/Packstack-Tech/packstack / get

Method get

frontend/src/lib/api/base-api.ts:65–73  ·  view source on GitHub ↗
(url: string, config?: AxiosRequestConfig)

Source from the content-addressed store, hash-verified

63 }
64
65 get<T>(url: string, config?: AxiosRequestConfig): Promise<void | AxiosResponse<T>> {
66 return axios.get<T>(url, this.makeRequestConfig(config)).catch((err: AxiosError) => {
67 if (err.response != null && err.response.status === 401) {
68 this.jwt.revokeToken();
69 return;
70 }
71 throw err;
72 });
73 }
74}

Callers 9

checkValidServiceWorkerFunction · 0.80
UserClass · 0.80
PackClass · 0.80
ItemClass · 0.80
item.jsFile · 0.80
pack.jsFile · 0.80
user.jsFile · 0.80
verifyJwtFunction · 0.80
authenticateFunction · 0.80

Calls 2

makeRequestConfigMethod · 0.95
revokeTokenMethod · 0.80

Tested by

no test coverage detected