making progress

This commit is contained in:
2026-05-07 02:06:54 +02:00
parent 7b7e2d399c
commit dea186c995
39 changed files with 2021 additions and 67 deletions
+2
View File
@@ -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' }),
}