Esempio n. 1
0
        public async Task <IActionResult> Staging()
        {
            var(appVersion, cliVersion) = await _cache.GetAndCache("Version.Cache.Staging", () => _version.CheckKahlaStaging());

            var downloadSite = "https://download.kahla.app";
            var model        = new IndexViewModel
            {
                AppLatestVersion = appVersion,
                CLILatestVersion = cliVersion,
                SDKLatestVersion = _versionService.GetSDKVersion(),
                DownloadRoot     = $"{downloadSite}/staging",
                CliDownloadRoot  = $"{downloadSite}/stagingcli",
                ArchiveRoot      = "https://github.com/AiursoftWeb/Kahla.App/archive",
                KahlaWebPath     = "//staging.kahla.app",
                IsProduction     = false
            };

            return(View(nameof(Index), model));
        }