This commit is contained in:
2020-01-15 19:20:48 +00:00
parent 2ae3837559
commit 289925950b
2 changed files with 11 additions and 4 deletions

View File

@@ -27,13 +27,13 @@ namespace AyaNova.Api.ControllerHelpers
public object items { get; } public object items { get; }
public object PageLinks { get; } public object PageLinks { get; }
public object Columns { get; } public string Columns { get; }
public ApiPagedResponse(object returnItems, object pageLinks, object columns = null) public ApiPagedResponse(object returnItems, object pageLinks, string columns)
{ {
items = returnItems; items = returnItems;
PageLinks = pageLinks; PageLinks = pageLinks;
Columns = Columns; Columns = columns;
} }
}//eoc }//eoc

View File

@@ -190,7 +190,7 @@ namespace AyaNova
// note: this option is only necessary when versioning by url segment. the SubstitutionFormat // note: this option is only necessary when versioning by url segment. the SubstitutionFormat
// can also be used to control the format of the API version in route templates // can also be used to control the format of the API version in route templates
//THIS IS WHAT ADDS THE API version PARAMETER AUTOMATICALLY so you don't need to type an 8 in every swagger-ui route test //THIS IS WHAT ADDS THE API version PARAMETER AUTOMATICALLY so you don't need to type an 8 in every swagger-ui route test
options.SubstituteApiVersionInUrl = true; options.SubstituteApiVersionInUrl = true;
}); });
@@ -411,6 +411,7 @@ namespace AyaNova
var TESTING_REFRESH_DB = false;//####################################################################################### var TESTING_REFRESH_DB = false;//#######################################################################################
#if (DEBUG) #if (DEBUG)
//TESTING //TESTING
if (TESTING_REFRESH_DB) if (TESTING_REFRESH_DB)
ServerBootConfig.AYANOVA_PERMANENTLY_ERASE_DATABASE = TESTING_REFRESH_DB; ServerBootConfig.AYANOVA_PERMANENTLY_ERASE_DATABASE = TESTING_REFRESH_DB;
@@ -487,6 +488,12 @@ namespace AyaNova
//final startup log //final startup log
_newLog.LogInformation("BOOT: COMPLETED - SERVER IS NOW OPEN"); _newLog.LogInformation("BOOT: COMPLETED - SERVER IS NOW OPEN");
#if (DEBUG)
//Show in dev console that server is open (so I don't need to look in the log to see it)
System.Diagnostics.Debugger.Log(1, "BOOT", "Startup.cs -> BOOT: COMPLETED - SERVER IS NOW OPEN");
#endif
} }