Sha256: 5ecd39cd7021fb60491520b89f6b150ae2bd7d9da3c4c7eb8b4f16e987fa2708
Contents?: true
Size: 595 Bytes
Versions: 8
Compression:
Stored size: 595 Bytes
Contents
import { API_OPERATIONS, get } from 'foremanReact/redux/API'; import { foremanApi } from '../../../../../services/api'; import { getResponseErrorMsgs } from '../../../../../utils/helpers'; import { MODULE_STREAMS_KEY } from './ModuleStreamsConstants'; const errorToast = error => getResponseErrorMsgs(error.response); export const getHostModuleStreams = (hostId, params) => get({ type: API_OPERATIONS.GET, key: MODULE_STREAMS_KEY, url: foremanApi.getApiUrl(`/hosts/${hostId}/module_streams`), errorToast: error => errorToast(error), params, }); export default getHostModuleStreams;
Version data entries
8 entries across 8 versions & 1 rubygems