Framework update.

This commit is contained in:
stephb9959
2022-05-19 16:09:28 -07:00
parent 428639c879
commit 4abec884bf
5 changed files with 30 additions and 5 deletions

View File

@@ -34,11 +34,16 @@ namespace OpenWifi{
}
void RESTAPI_inventory_list_handler::DoGet() {
std::string UUID;
std::string Arg,Arg2;
if(GetBoolParameter("orderSpec")) {
return ReturnFieldList(DB_,*this);
}
bool SerialOnly=GetBoolParameter("serialOnly");
std::string UUID;
std::string Arg,Arg2;
std::string OrderBy{" ORDER BY serialNumber ASC "};
if(HasParameter("orderBy",Arg)) {
if(!DB_.PrepareOrderBy(Arg,OrderBy)) {