stephb9959
2023-09-27 22:37:06 -07:00
parent e71b83ced7
commit 3ed97e6c18
16 changed files with 1611 additions and 760 deletions

View File

@@ -0,0 +1,22 @@
//
// Created by stephane bourque on 2023-09-27.
//
#include "RESTAPI_radiusendpoint_list_handler.h"
namespace OpenWifi {
void RESTAPI_radiusendpoint_list_handler::DoGet() {
if(QB_.CountOnly) {
return ReturnCountOnly(DB_.Count());
}
std::vector<ProvObjects::RADIUSEndPoint> Records;
if(DB_.GetRecords(QB_.Offset,QB_.Limit,Records)) {
return ReturnObject(Records);
}
return NotFound();
}
} // OpenWifi