11 lines
469 B
TypeScript
11 lines
469 B
TypeScript
import { buildApiUrl } from '../../config/api-url.util';
|
|
|
|
|
|
export const USER_ENDPOINTS = {
|
|
dataTable: buildApiUrl('identity', '/v1/users/datatable'),
|
|
create: buildApiUrl('identity', '/v1/users'),
|
|
getById: (id: string) => buildApiUrl('identity', `/v1/users/${encodeURIComponent(id)}`),
|
|
update: (id: string) => buildApiUrl('identity', `/v1/users/${encodeURIComponent(id)}`),
|
|
autocomplete: buildApiUrl('identity', '/v1/users/autocomplete')
|
|
} as const;
|