This commit is contained in:
2020-04-06 20:24:51 +00:00
parent 5f92294b44
commit 26d954c567
2 changed files with 25 additions and 0 deletions

View File

@@ -69,6 +69,22 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Get License info
/// </summary>
/// <returns>Information about the currently installed license in AyaNova</returns>
[AllowAnonymous]
[HttpGet("trial")]
public ActionResult GetTrialFlag()
{
if (serverState.IsClosed)
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
return Ok(ApiOkResponse.Response(AyaNova.Core.License.ActiveKey.TrialLicense, true));
}
/// <summary>
/// Fetch license