This commit is contained in:
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@@ -48,7 +48,7 @@
|
||||
"AYANOVA_DATA_PATH": "c:\\temp\\ravendata",
|
||||
"AYANOVA_USE_URLS": "http://*:7575;",
|
||||
//"AYANOVA_PERMANENTLY_ERASE_DATABASE":"true",
|
||||
"AYANOVA_SERVER_TEST_MODE": "false",
|
||||
"AYANOVA_SERVER_TEST_MODE": "true",
|
||||
//"AYANOVA_REPORT_RENDERING_TIMEOUT":"60",
|
||||
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small",
|
||||
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin\\"
|
||||
|
||||
@@ -53,8 +53,7 @@ namespace AyaNova.Api.Controllers
|
||||
[HttpGet("{logname}")]
|
||||
public ActionResult GetLog([FromRoute] string logname)
|
||||
{
|
||||
// if (serverState.IsClosed)
|
||||
// return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
//NOTE: this route deliberately open even when server closed as a troubleshooting measure
|
||||
|
||||
if (!Authorized.HasReadFullRole(HttpContext.Items, AyaType.LogFile))
|
||||
{
|
||||
@@ -93,8 +92,7 @@ namespace AyaNova.Api.Controllers
|
||||
[HttpGet()]
|
||||
public ActionResult ListLogs()
|
||||
{
|
||||
// if (serverState.IsClosed)
|
||||
// return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
//NOTE: this route deliberately open even when server closed as a troubleshooting measure
|
||||
|
||||
if (!Authorized.HasReadFullRole(HttpContext.Items, AyaType.LogFile))
|
||||
{
|
||||
@@ -126,8 +124,7 @@ namespace AyaNova.Api.Controllers
|
||||
[HttpGet("download/{logname}")]
|
||||
public async Task<IActionResult> DownloadLog([FromRoute] string logname, [FromQuery] string t)
|
||||
{
|
||||
// if (serverState.IsClosed)
|
||||
// return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
//NOTE: this route deliberately open even when server closed as a troubleshooting measure
|
||||
|
||||
if (!ModelState.IsValid)
|
||||
return BadRequest(new ApiErrorResponse(ModelState));
|
||||
|
||||
Reference in New Issue
Block a user