mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-31 23:16:54 +00:00
Attempts to save file in golang to no avail
This commit is contained in:
@@ -62,6 +62,12 @@ $scope.saveAllSettings = function() {
|
||||
}).
|
||||
success(function (data) {
|
||||
Notification.success('Saved settings');
|
||||
for(var i=0; i<data.Exchanges.length;i++) {
|
||||
data.Exchanges[i].AvailablePairsSplit = data.Exchanges[i].AvailablePairs.split(",");
|
||||
data.Exchanges[i].EnabledPairsSplit = data.Exchanges[i].EnabledPairs.split(",");
|
||||
}
|
||||
$scope.config = data;
|
||||
Notification.info('Settings loaded');
|
||||
}).
|
||||
error(function (data) {
|
||||
Notification.error('Save failed');
|
||||
|
||||
@@ -40,11 +40,11 @@ app.get('/config/all', function (req, res) {
|
||||
|
||||
app.post('/config/all/save', function(req, res) {
|
||||
requestify.post('http://localhost:9050/config/all/save', {
|
||||
data: req.body
|
||||
Data: req.body
|
||||
})
|
||||
.then(function(response) {
|
||||
console.log(response);
|
||||
res.send(response);
|
||||
res.send(response.body);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user