dots-wrapper
Version:
Digital Ocean v2 api wrapper - javascript - typescript - nodejs
9 lines • 359 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getImage = void 0;
const getImage = ({ httpClient, }) => ({ image_id, slug, }) => {
const url = `/images/${image_id !== null && image_id !== void 0 ? image_id : slug}`;
return httpClient.get(url);
};
exports.getImage = getImage;
//# sourceMappingURL=get-image.js.map