|
|
|
@ -25,19 +25,16 @@ var uriMatcher = new URIMatcher(String(uri));
|
|
|
|
|
var devicemgtProps = require("/app/conf/devicemgt-props.js").config();
|
|
|
|
|
var serviceInvokers = require("/app/modules/backend-service-invoker.js")["backendServiceInvoker"];
|
|
|
|
|
|
|
|
|
|
if (uriMatcher.match("/{context}/api/data-tables/invoker")) {
|
|
|
|
|
var url = request.getParameter("url");
|
|
|
|
|
var targetURL;
|
|
|
|
|
var payload = request.getContent();
|
|
|
|
|
|
|
|
|
|
function appendQueryParam (url, queryParam , value) {
|
|
|
|
|
if (url.indexOf("?") > 0) {
|
|
|
|
|
return url + "&" + queryParam + "=" + value;
|
|
|
|
|
}
|
|
|
|
|
return url + "?" + queryParam + "=" + value;
|
|
|
|
|
}
|
|
|
|
|
targetURL = devicemgtProps["httpsURL"] + request.getParameter("url");
|
|
|
|
|
|
|
|
|
|
if (uriMatcher.match("/{context}/api/data-tables/invoker")) {
|
|
|
|
|
var url = request.getParameter("url");
|
|
|
|
|
var targetURL = devicemgtProps["httpsURL"] + request.getParameter("url");
|
|
|
|
|
var allParams = request.getAllParameters();
|
|
|
|
|
|
|
|
|
|
for (var key in allParams) {
|
|
|
|
|