strolch-maven-archetypes/strolch.mvn.archetype.plc/src/main/resources/archetype-resources/__rootArtifactId__-plc-web/src/main/webapp/app/CustomWeb.js

13 lines
444 B
JavaScript

CustomWeb = {
//
};
(function () {
var basePath = window.location.pathname.substr(0, window.location.pathname.indexOf('/index.html'));
basePath = basePath.substr(0, basePath.lastIndexOf('/'));
CustomWeb.baseRestPath = basePath + '/rest';
console.log('Base REST Path is ' + CustomWeb.baseRestPath);
CustomWeb.baseWsPath = basePath + '/websocket';
console.log('Base WebSocket Path is ' + CustomWeb.baseWsPath);
})();