index.ts 429 Bytes
import composeApiRouteFor from '../../../helpers/composeApiRouteFor';

const communicationsBase = composeApiRouteFor('communication-threads');

export const threadContentsRoute = (threadId: number) => `${communicationsBase}/${threadId}/contents`;

// TODO: should be replaced by threadContentsRoute once API has been adjusted
export const threadMessagesRoute = (threadId: number) => `${communicationsBase}/${threadId}/messages`;