This commit is contained in:
@@ -69,19 +69,19 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get Trial status of license
|
||||
/// </summary>
|
||||
/// <returns>True if a trial license</returns>
|
||||
[AllowAnonymous]
|
||||
[HttpGet("trial")]
|
||||
public ActionResult GetTrialFlag()
|
||||
{
|
||||
//note: this route is called by the client as the first action so it also acts like a ping to see if the server is up as well
|
||||
if (serverState.IsClosed)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
return Ok(ApiOkResponse.Response(AyaNova.Core.License.ActiveKey.TrialLicense));
|
||||
}
|
||||
// /// <summary>
|
||||
// /// Get Trial status of license
|
||||
// /// </summary>
|
||||
// /// <returns>True if a trial license</returns>
|
||||
// [AllowAnonymous]
|
||||
// [HttpGet("trial")]
|
||||
// public ActionResult GetTrialFlag()
|
||||
// {
|
||||
// //note: this route is called by the client as the first action so it also acts like a ping to see if the server is up as well
|
||||
// if (serverState.IsClosed)
|
||||
// return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
// return Ok(ApiOkResponse.Response(AyaNova.Core.License.ActiveKey.TrialLicense));
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user