import { api } from './api.js'; export const listComments = (entityType, entityId) => api.get(`/comments?entityType=${entityType}&entityId=${entityId}`); export const createComment = (entityType, entityId, message) => api.post('/comments', { entityType, entityId, message });