From 0199012cc144977a459d9f7912c0cc9c074c901a Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sun, 17 May 2020 21:30:27 +0000 Subject: [PATCH] --- devdocs/todo.txt | 8 ++--- .../AyaNova/Controllers/ApiRootController.cs | 29 ++++++++++--------- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/devdocs/todo.txt b/devdocs/todo.txt index e5586cf9..71e170bb 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -1,16 +1,16 @@ PRIORITY - ALWAYS Lowest level stuff first =-=-=-=- -todo: API root controller - build mode and server info should be authorized shoudln't they? Unauthorized people have no need to see that stuff + todo: api / server landing page is shitty on a mobile and really just shitty, add a logo or some shit todo: Should server show uptime somewhere? -todo: jobs should have a kill by time so they can't just sit running forever - also is there a way to kill a stuck job via ui possible? + also it's leaking tons of private information, get rid of all that stuff that isn't absolutely required + todo: Log configuration into server log at startup? https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/3523 log all config settings into server log on boot + license? todo:aycontext clean up old block of weird definitions todo: apiokresponse returns readonly value every time, but I check it anyway at the client and biz object itself doesn't set it I don't think, so...should it be removed? todo: Is there a log that records past jobs, how long can they be viewed? diff --git a/server/AyaNova/Controllers/ApiRootController.cs b/server/AyaNova/Controllers/ApiRootController.cs index 599446f1..90a8da44 100644 --- a/server/AyaNova/Controllers/ApiRootController.cs +++ b/server/AyaNova/Controllers/ApiRootController.cs @@ -38,7 +38,7 @@ namespace AyaNova.Api.Controllers /// [AllowAnonymous] [HttpGet] - public async Task Index() + public ContentResult Index() { var errorBlock = string.Empty; if (serverState.IsSystemLocked) @@ -64,22 +64,25 @@ namespace AyaNova.Api.Controllers AyaNova manual

API explorer

Email AyaNova support

-

{await TranslationBiz.GetDefaultTranslationAsync("HelpLicense")}

-
{AyaNova.Core.License.LicenseInfo}
-

Schema version

-
{AySchema.currentSchema.ToString()}
-

Active techs

-
{await UserBiz.ActiveCountAsync()}
-

Server time

-
{DateUtil.ServerDateTimeString(System.DateTime.UtcNow)}
-
{TimeZoneInfo.Local.Id}
-

Server logs

-
{ServerBootConfig.AYANOVA_LOG_PATH}
+ + "; - + /* +

{await TranslationBiz.GetDefaultTranslationAsync("HelpLicense")}

+
{AyaNova.Core.License.LicenseInfo}
+

Schema version

+
{AySchema.currentSchema.ToString()}
+

Active techs

+
{await UserBiz.ActiveCountAsync()}
+

Server time

+
{DateUtil.ServerDateTimeString(System.DateTime.UtcNow)}
+
{TimeZoneInfo.Local.Id}
+

Server logs

+
{ServerBootConfig.AYANOVA_LOG_PATH}
+ */ return new ContentResult {