mirror of https://github.com/portainer/portainer
10 lines
305 B
JavaScript
10 lines
305 B
JavaScript
// 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.
|
|
function imageGetResponse(data) {
|
|
var response = {};
|
|
response.file = data;
|
|
return response;
|
|
}
|
|
|