strolch-maven-archetypes/li.strolch.mvn.archetype.we.../src/main/resources/archetype-resources/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);
})();