From d9777620508a7b197f0e5752869eef91d83e20a0 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 14 Aug 2016 13:43:20 +0300 Subject: Use relative URLs for web app --- web/app/model/Server.js | 2 +- web/app/model/User.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'web/app/model') diff --git a/web/app/model/Server.js b/web/app/model/Server.js index 02968c2d6..2ed8f12f4 100644 --- a/web/app/model/Server.js +++ b/web/app/model/Server.js @@ -60,7 +60,7 @@ Ext.define('Traccar.model.Server', { proxy: { type: 'ajax', - url: '/api/server', + url: 'api/server', actionMethods: { update: 'PUT' }, diff --git a/web/app/model/User.js b/web/app/model/User.js index 352acc651..b162bada9 100644 --- a/web/app/model/User.js +++ b/web/app/model/User.js @@ -60,7 +60,7 @@ Ext.define('Traccar.model.User', { proxy: { type: 'rest', - url: '/api/users', + url: 'api/users', writer: { type: 'json', writeAllFields: true -- cgit v1.2.3