Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function getShowCommandFormData({ entityKey, instanceId, commandKey }) {
return api.get(`show/${entityKey}/command/${commandKey}${instanceId ? `/${instanceId}` : ''}/data`)
.then(response => response.data.data);
}
export function getShowView({ entityKey, instanceId }) {
return api.get(`show/${entityKey}/${instanceId || ''}`)
.then(response => response.data);
}