1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00
portainer/app/agent/rest/response/browse.js

10 lines
297 B
JavaScript
Raw Normal View History

// The get action of the Browse 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 browseGetResponse(data) {
var response = {};
response.file = data;
return response;
}