Skip to content

Commit 7f42d5f

Browse files
authored
Update packages/rest/src/index.ts
1 parent 8a5862e commit 7f42d5f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/rest/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ export function createRestClient<TServerConfig extends ServerConfig<any, any, an
3939
return makeFetch('GET', path, payload, config)
4040
},
4141
POST: async (path: string, payload: AnyPayload) => {
42-
return makeFetch('GET', path, payload, config)
42+
return makeFetch('POST', path, payload, config)
4343
},
4444
PUT: async (path: string, payload: AnyPayload) => {
45-
return makeFetch('GET', path, payload, config)
45+
return makeFetch('PUT', path, payload, config)
4646
},
4747
DELETE: async (path: string, payload: AnyPayload) => {
48-
return makeFetch('GET', path, payload, config)
48+
return makeFetch('DELETE', path, payload, config)
4949
},
5050
PATCH: async (path: string, payload: AnyPayload) => {
51-
return makeFetch('GET', path, payload, config)
51+
return makeFetch('PATCH', path, payload, config)
5252
},
5353
}
5454
}

0 commit comments

Comments
 (0)