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

Method put

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

Source from the content-addressed store, hash-verified

53 }
54
55 put<S, T>(url: string, data: S, config?: AxiosRequestConfig): Promise<void | AxiosResponse<T>> {
56 return axios.put<T>(url, data, this.makeRequestConfig(config)).catch((err: AxiosError) => {
57 if (err.response != null && err.response.status === 401) {
58 this.jwt.revokeToken();
59 return;
60 }
61 throw err;
62 });
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) => {

Callers 6

UserClass · 0.80
PackClass · 0.80
ItemClass · 0.80
item.jsFile · 0.80
pack.jsFile · 0.80
user.jsFile · 0.80

Calls 2

makeRequestConfigMethod · 0.95
revokeTokenMethod · 0.80

Tested by

no test coverage detected