43 lines
886 B
TypeScript
43 lines
886 B
TypeScript
import { buildApiUrl } from '../../../../core/config/api-url.util';
|
|
|
|
export const EXCHANGE_RATE_ENDPOINTS = {
|
|
dataTable: buildApiUrl(
|
|
'masterAdmin',
|
|
'/v1/exchange-rates/datatable'
|
|
),
|
|
|
|
create: buildApiUrl(
|
|
'masterAdmin',
|
|
'/v1/exchange-rates'
|
|
),
|
|
|
|
getById: (id: string) =>
|
|
buildApiUrl(
|
|
'masterAdmin',
|
|
`/v1/exchange-rates/${encodeURIComponent(id)}`
|
|
),
|
|
|
|
update: (id: string) =>
|
|
buildApiUrl(
|
|
'masterAdmin',
|
|
`/v1/exchange-rates/${encodeURIComponent(id)}`
|
|
),
|
|
|
|
delete: (id: string) =>
|
|
buildApiUrl(
|
|
'masterAdmin',
|
|
`/v1/exchange-rates/${encodeURIComponent(id)}`
|
|
),
|
|
|
|
changeStatus: (id: string) =>
|
|
buildApiUrl(
|
|
'masterAdmin',
|
|
`/v1/exchange-rates/${encodeURIComponent(id)}/status`
|
|
),
|
|
|
|
autocomplete: buildApiUrl(
|
|
'masterAdmin',
|
|
'/v1/exchange-rates/autocomplete'
|
|
),
|
|
} as const;
|