You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/agent/rest/response/browse.js

10 lines
306 B

// 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.
export function browseGetResponse(data) {
const response = {};
response.file = data;
return response;
}