This commit is contained in:
@@ -71,6 +71,28 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get API server info for general display
|
||||
///
|
||||
/// Required roles: Any
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns>API server info</returns>
|
||||
[HttpGet("ServerInfo")]
|
||||
public ActionResult ServerInfo()
|
||||
{
|
||||
return Ok(new
|
||||
{
|
||||
data = new
|
||||
{
|
||||
ServerVersion = AyaNovaVersion.FullNameAndVersion,
|
||||
DBSchemaVersion = AySchema.currentSchema,
|
||||
ServerLocalTime = DateUtil.ServerDateTimeString(System.DateTime.UtcNow),
|
||||
ServerTimeZone = TimeZoneInfo.Local.Id,
|
||||
License = AyaNova.Core.License.LicenseInfoAsJson
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
#if (DEBUG)
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user