This commit is contained in:
@@ -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>
|
/// <summary>
|
||||||
/// Fetch license
|
/// Fetch license
|
||||||
|
|||||||
@@ -316,6 +316,15 @@ namespace AyaNova
|
|||||||
ForwardedHeaders = Microsoft.AspNetCore.HttpOverrides.ForwardedHeaders.XForwardedFor | Microsoft.AspNetCore.HttpOverrides.ForwardedHeaders.XForwardedProto
|
ForwardedHeaders = Microsoft.AspNetCore.HttpOverrides.ForwardedHeaders.XForwardedFor | Microsoft.AspNetCore.HttpOverrides.ForwardedHeaders.XForwardedProto
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
//If want to add a header to all (or filtered in here) requests
|
||||||
|
// app.Use(async (context, next) =>
|
||||||
|
// {
|
||||||
|
// context.Response.Headers.Add("X-Developed-By", "Ground Zero Tech-Works inc.");
|
||||||
|
// await next.Invoke();
|
||||||
|
// });
|
||||||
|
|
||||||
|
|
||||||
#region STATIC FILES
|
#region STATIC FILES
|
||||||
_newLog.LogDebug("BOOT: pipeline - static files");
|
_newLog.LogDebug("BOOT: pipeline - static files");
|
||||||
app.UseDefaultFiles();
|
app.UseDefaultFiles();
|
||||||
|
|||||||
Reference in New Issue
Block a user