mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing context issue in service-invoker
This commit is contained in:
parent
31b62e6336
commit
c8b37207fc
@ -26,10 +26,9 @@ var invokerUtil = function () {
|
||||
restAPIRequestDetails["requestMethod"] = requestMethod;
|
||||
restAPIRequestDetails["requestURL"] = requestURL;
|
||||
restAPIRequestDetails["requestPayload"] = JSON.stringify(requestPayload);
|
||||
var appContext = devicemgtProps["appContext"];
|
||||
|
||||
var request = {
|
||||
url: appContext + "api/invoker/execute/",
|
||||
url: context + "/api/invoker/execute/",
|
||||
type: "POST",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(restAPIRequestDetails),
|
||||
|
||||
@ -15,10 +15,7 @@
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
}}
|
||||
{{#zone "bottomJs"}}
|
||||
{{js "js/js.cookie.js"}}
|
||||
{{js "js/invoker-lib.js"}}
|
||||
|
||||
{{#zone "content"}}
|
||||
<div id="error-msg" class="hide">
|
||||
<div class="content">
|
||||
<div class="row">
|
||||
@ -34,4 +31,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/zone}}
|
||||
{{/zone}}
|
||||
{{#zone "bottomJs"}}
|
||||
<script type="text/javascript">
|
||||
var context = "{{@app.context}}"
|
||||
</script>
|
||||
{{js "js/js.cookie.js"}}
|
||||
{{js "js/invoker-lib.js"}}
|
||||
{{/zone}}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user