lib/riemann/dash/public/persistence.js in riemann-dash-0.1.1 vs lib/riemann/dash/public/persistence.js in riemann-dash-0.2.0
- old
+ new
@@ -1,11 +1,11 @@
// Provides persistent storage for dashboard configuration.
var persistence = (function() {
// Saves configuration to persistent store. Calls success() or error() when
// complete.
var save = function(config, success, error) {
- jQuery.ajax('/ws/config', {
+ jQuery.ajax('/config', {
type: 'POST',
success: success,
error: error,
contentType: 'application/json',
data: JSON.stringify(config),
@@ -13,10 +13,10 @@
});
};
// Returns configuration from persistent store.
var load = function(success, error) {
- jQuery.ajax('/ws/config', {
+ jQuery.ajax('/config', {
type: 'GET',
success: success,
error: error,
dataType: 'json'
});