UNPKG

tfabrica

Version:

library for TFabrica - TechSol

39 lines 1.67 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TfabricaSettingsData = (function () { function TfabricaSettingsData() { this.basePath = ""; this.authenticationApiUrl = "/api/Auth/Authenticate"; this.translationsApiUrl = "/api/Config/Translations?lang="; this.supportedLanguagesApiUrl = "/api/Config/SupportedLanguages"; this.userMenuApiUrl = "/api/Menu/UserMenu"; this.appName = "tApi"; } TfabricaSettingsData.prototype.getauthenticationApiUrl = function () { if (this.authenticationApiUrl.startsWith("http")) { return this.authenticationApiUrl; } return this.basePath + this.authenticationApiUrl; }; TfabricaSettingsData.prototype.gettranslationsApiUrl = function () { if (this.translationsApiUrl.startsWith("http")) { return this.translationsApiUrl; } return this.basePath + this.translationsApiUrl; }; TfabricaSettingsData.prototype.getsupportedLanguagesApiUrl = function () { if (this.supportedLanguagesApiUrl.startsWith("http")) { return this.supportedLanguagesApiUrl; } return this.basePath + this.supportedLanguagesApiUrl; }; TfabricaSettingsData.prototype.getuserMenuApiUrl = function () { if (this.userMenuApiUrl.startsWith("http")) { return this.userMenuApiUrl; } return this.basePath + this.userMenuApiUrl; }; return TfabricaSettingsData; }()); exports.TfabricaSettingsData = TfabricaSettingsData; //# sourceMappingURL=tfabrica.settings.model.js.map