Attempts to save file in golang to no avail

This commit is contained in:
Scott
2016-08-08 15:49:35 +10:00
parent e85876e273
commit 9bfffe1a37
4 changed files with 58 additions and 4 deletions

View File

@@ -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');

View File

@@ -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);
});
});