From a0a96b253b90d389a5c06ba1133b2a2f32ecb0fc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 2 Dec 2015 11:48:40 +1300 Subject: Share session between two API versions --- web/app/controller/Root.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/app/controller') diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index de20a8f2b..cd868d2bc 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -33,7 +33,7 @@ Ext.define('Traccar.controller.Root', { onLaunch: function () { Ext.Ajax.request({ scope: this, - url: '/rest/server', + url: '/api/rest/server', callback: this.onServerReturn }); }, @@ -44,7 +44,7 @@ Ext.define('Traccar.controller.Root', { Traccar.app.setServer(Ext.decode(response.responseText)); Ext.Ajax.request({ scope: this, - url: '/rest/session', + url: '/api/rest/session', callback: this.onSessionReturn }); } else { -- cgit v1.2.3