From 89193bdb0eea3834b4d397c7f917dfcb67be9938 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Wed, 23 Aug 2017 16:15:22 +0200 Subject: [PATCH] getApiUrl simplified --- frontend-js/src/main/js/ServerConnector.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frontend-js/src/main/js/ServerConnector.js b/frontend-js/src/main/js/ServerConnector.js index cc8c35497d..7bc746f5a8 100644 --- a/frontend-js/src/main/js/ServerConnector.js +++ b/frontend-js/src/main/js/ServerConnector.js @@ -266,16 +266,12 @@ ServerConnector.createGetParams = function(params, prefix) { ServerConnector.getApiUrl = function(paramObj) { var type = paramObj.type; - var method = paramObj.method; var params = this.createGetParams(paramObj.params); var result = paramObj.url; if (result === undefined) { result = this.getApiBaseUrl() + "/" + type; } - if (method !== undefined) { - result += "/" + method; - } if (params !== "") { result += "?" + params; } -- GitLab