tenantClient.ts 530 B

1234567891011
  1. // Mock tenant client for testing purposes
  2. // This will be replaced with actual Hono client when server routes are available
  3. export const tenantClient = {
  4. $get: () => Promise.resolve({ status: 200, json: () => Promise.resolve({ data: [], pagination: { total: 0, page: 1, pageSize: 10 } }) }),
  5. $post: () => Promise.resolve({ status: 201, json: () => Promise.resolve({}) }),
  6. ':id': {
  7. $put: () => Promise.resolve({ status: 200, json: () => Promise.resolve({}) }),
  8. $delete: () => Promise.resolve({ status: 204 })
  9. }
  10. };