clientside config requests relative in order to support arbitrary mounts

This commit is contained in:
egghead 2013-03-15 02:17:18 +00:00
parent 7bbbdbb0d4
commit d88e474038

View file

@ -3,7 +3,7 @@ var persistence = (function() {
// Saves configuration to persistent store. Calls success() or error() when
// complete.
var save = function(config, success, error) {
jQuery.ajax('/config', {
jQuery.ajax('config', {
type: 'POST',
success: success,
error: error,
@ -15,7 +15,7 @@ var persistence = (function() {
// Returns configuration from persistent store.
var load = function(success, error) {
jQuery.ajax('/config', {
jQuery.ajax('config', {
type: 'GET',
success: success,
error: error,