mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
* refactor(agent): replace v1 browse with es6 module * refactor(agent): refactor agentv1 to es6 * refactor(agent): replace agent factory with es6 * refactor(agent): refactor browse response to es6 * refactor(agent): refactor browse to es6 * refactor(agent): import angular * refactor(agent): refactor host to es6 * refactor(agent): refactor ping to es6
9 lines
306 B
JavaScript
9 lines
306 B
JavaScript
// 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;
|
|
}
|