{SigScript()}
private string SigScript(){
return @"";
}
*/
#endregion
///
/// Get API server info for general display
///
/// API server info
[HttpGet("server-info")]
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)
///
/// Get build mode of server, used for automated testing purposes
///
/// "DEBUG" or "RELEASE"
[HttpGet("build-mode")]
public ActionResult BuildMode()
{
return Ok(new { data = new { BuildMode = "DEBUG" } });
}
#else
///
/// Get build mode of server, used for automated testing purposes
///
/// "DEBUG" or "RELEASE"
[HttpGet("build-mode")]
public ActionResult BuildMode()
{
return Ok(new { data = new { BuildMode = "RELEASE" } });
}
#endif
}
}