portainer/app/docker/rest/response/image.js

10 lines
312 B
JavaScript
Raw Normal View History

// The get action of the Image service returns a file.
// ngResource will transform it as an array of chars.
// This functions simply creates a response object and assign
// the data to a field.
2018-10-10 08:06:23 +00:00
export function imageGetResponse(data) {
var response = {};
response.file = data;
return response;
}