This commit is contained in:
2020-05-17 21:30:27 +00:00
parent 6e89c6dff8
commit 0199012cc1
2 changed files with 20 additions and 17 deletions

View File

@@ -38,7 +38,7 @@ namespace AyaNova.Api.Controllers
/// <returns></returns>
[AllowAnonymous]
[HttpGet]
public async Task<ContentResult> Index()
public ContentResult Index()
{
var errorBlock = string.Empty;
if (serverState.IsSystemLocked)
@@ -64,22 +64,25 @@ namespace AyaNova.Api.Controllers
<a href=""/docs"" target=""_blank"">AyaNova manual</a><br/><br/>
<a href=""/api-docs"" target=""_blank"">API explorer</a><br/><br/>
<a href=""mailto:support@ayanova.com"">Email AyaNova support</a><br/><br/>
<h4>{await TranslationBiz.GetDefaultTranslationAsync("HelpLicense")}</h4>
<pre>{AyaNova.Core.License.LicenseInfo}</pre>
<h4>Schema version</h4>
<pre>{AySchema.currentSchema.ToString()}</pre>
<h4>Active techs</h4>
<pre>{await UserBiz.ActiveCountAsync()}</pre>
<h4>Server time</h4>
<pre>{DateUtil.ServerDateTimeString(System.DateTime.UtcNow)}</pre>
<pre>{TimeZoneInfo.Local.Id}</pre>
<h4>Server logs</h4>
<pre>{ServerBootConfig.AYANOVA_LOG_PATH}</pre>
</div>
</div>
</body>
</html>";
/*
<h4>{await TranslationBiz.GetDefaultTranslationAsync("HelpLicense")}</h4>
<pre>{AyaNova.Core.License.LicenseInfo}</pre>
<h4>Schema version</h4>
<pre>{AySchema.currentSchema.ToString()}</pre>
<h4>Active techs</h4>
<pre>{await UserBiz.ActiveCountAsync()}</pre>
<h4>Server time</h4>
<pre>{DateUtil.ServerDateTimeString(System.DateTime.UtcNow)}</pre>
<pre>{TimeZoneInfo.Local.Id}</pre>
<h4>Server logs</h4>
<pre>{ServerBootConfig.AYANOVA_LOG_PATH}</pre>
*/
return new ContentResult
{