import { buildApiUrl } from '../../../../core/config/api-url.util';

export const LANGUAGE_ENDPOINTS = {
  dataTable: buildApiUrl('masterAdmin', '/v1/languages/datatable'),
  create: buildApiUrl('masterAdmin', '/v1/languages'),
  getById: (id: string) =>
    buildApiUrl('masterAdmin', `/v1/languages/${encodeURIComponent(id)}`),
  update: (id: string) =>
    buildApiUrl('masterAdmin', `/v1/languages/${encodeURIComponent(id)}`),
  autocomplete: buildApiUrl('masterAdmin', '/v1/languages/autocomplete')
} as const;
