|
|
@@ -95,15 +95,15 @@ function getNetworkBackups(userId, networkId, messages, errors) { |
|
|
|
} |
|
|
|
|
|
|
|
function getLogFlag(messages, errors) { |
|
|
|
return fetch(`${config.apiUrl}/me/nodes/logs/status`, util.getWithAuth()) |
|
|
|
return fetch(`${config.apiUrl}/me/networks/logs/status`, util.getWithAuth()) |
|
|
|
.then(util.handleCrudResponse(messages, errors)); |
|
|
|
} |
|
|
|
function disableLog(messages, errors) { |
|
|
|
return fetch(`${config.apiUrl}/me/nodes/logs/stop`, util.postWithAuth()) |
|
|
|
return fetch(`${config.apiUrl}/me/networks/logs/stop`, util.postWithAuth()) |
|
|
|
.then(util.handlePlaintextResponse(messages, errors)); |
|
|
|
} |
|
|
|
function enableLog(disableInDays, messages, errors) { |
|
|
|
const ttlDaysParam = disableInDays ? '?ttlDays=' + disableInDays : ''; |
|
|
|
return fetch(`${config.apiUrl}/me/nodes/logs/start` + ttlDaysParam, util.postWithAuth()) |
|
|
|
return fetch(`${config.apiUrl}/me/networks/logs/start` + ttlDaysParam, util.postWithAuth()) |
|
|
|
.then(util.handlePlaintextResponse(messages, errors)); |
|
|
|
} |