making progress
This commit is contained in:
@@ -75,6 +75,8 @@ export const api = {
|
||||
request(path, schema, { method: 'POST', json: body }),
|
||||
put: <T>(path: string, schema: z.ZodType<T>, body: unknown) =>
|
||||
request(path, schema, { method: 'PUT', json: body }),
|
||||
patch: <T>(path: string, schema: z.ZodType<T>, body: unknown) =>
|
||||
request(path, schema, { method: 'PATCH', json: body }),
|
||||
delete: <T>(path: string, schema: z.ZodType<T>) =>
|
||||
request(path, schema, { method: 'DELETE' }),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user