mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-02 19:48:03 +00:00
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
22
src/RESTAPI/RESTAPI_radiusendpoint_list_handler.cpp
Normal file
22
src/RESTAPI/RESTAPI_radiusendpoint_list_handler.cpp
Normal 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
|
||||
Reference in New Issue
Block a user