api.ts 286 B

1234567
  1. import { postJSON } from '../../../infrastructure/fetch-json'
  2. import { debugConsole } from '@/utils/debugging'
  3. export const refreshProjectMetadata = (projectId: string, entityId: string) =>
  4. postJSON(`/project/${projectId}/doc/${entityId}/metadata`).catch(
  5. debugConsole.error
  6. )