MCPcopy
hub / github.com/4thfever/cultivation-world-simulator / patch

Function patch

web/src/api/http.ts:96–104  ·  view source on GitHub ↗
(path: string, body: unknown)

Source from the content-addressed store, hash-verified

94 },
95
96 patch<T>(path: string, body: unknown) {
97 return request<T>(path, {
98 method: 'PATCH',
99 headers: {
100 'Content-Type': 'application/json',
101 },
102 body: JSON.stringify(body),
103 });
104 },
105
106 put<T>(path: string, body: unknown) {
107 return request<T>(path, {

Calls 1

requestFunction · 0.85