import { GATEWAY_API_URL } from 'src/config-global';

const ROLE_PREFIX = `${GATEWAY_API_URL}/api/user-management/roles`;

export const roleEndpoints = {
  role: {
    list: `${ROLE_PREFIX}`,
    add: `${ROLE_PREFIX}`,
    edit: `${ROLE_PREFIX}/id/:id`,
    delete: `${ROLE_PREFIX}/:id`,
    details: `${ROLE_PREFIX}/id/:id`,
    isAssigned: `${ROLE_PREFIX}/:id/is-assigned`,
  },
};
