UNPKG

hcc-imageright-apis

Version:

imageright APIs

8 lines (7 loc) 342 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getContainers = getContainers; function getContainers(api, containerId, recursive) { const qstr = recursive ? '?recursive=true' : '?recursive=false'; return api.get(`api/containers/${containerId}${qstr}`).then((res) => Promise.resolve(res.data)); }