diff --git a/src/RESTAPI/RESTAPI_radiusendpoint_list_handler.cpp b/src/RESTAPI/RESTAPI_radiusendpoint_list_handler.cpp index 2199b1f..1392f09 100644 --- a/src/RESTAPI/RESTAPI_radiusendpoint_list_handler.cpp +++ b/src/RESTAPI/RESTAPI_radiusendpoint_list_handler.cpp @@ -7,16 +7,12 @@ namespace OpenWifi { void RESTAPI_radiusendpoint_list_handler::DoGet() { - if(QB_.CountOnly) { return ReturnCountOnly(DB_.Count()); } - std::vector Records; - if(DB_.GetRecords(QB_.Offset,QB_.Limit,Records)) { - return ReturnObject(Records); - } - return NotFound(); + DB_.GetRecords(QB_.Offset,QB_.Limit,Records); + return ReturnObject(Records); } } // OpenWifi \ No newline at end of file