mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-01 19:17:47 +00:00
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
@@ -9,13 +9,6 @@
|
|||||||
namespace OpenWifi {
|
namespace OpenWifi {
|
||||||
|
|
||||||
void RESTAPI_radiusendpoint_list_handler::DoGet() {
|
void RESTAPI_radiusendpoint_list_handler::DoGet() {
|
||||||
if(GetBoolParameter("lastUpdate")) {
|
|
||||||
uint64_t LastUpdate=0;
|
|
||||||
AppServiceRegistry().Get("radiusEndpointLastUpdate", LastUpdate);
|
|
||||||
Poco::JSON::Object Answer;
|
|
||||||
Answer.set("lastUpdate",LastUpdate);
|
|
||||||
return ReturnObject(Answer);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(GetBoolParameter("currentStatus")) {
|
if(GetBoolParameter("currentStatus")) {
|
||||||
ProvObjects::RADIUSEndpointUpdateStatus Status;
|
ProvObjects::RADIUSEndpointUpdateStatus Status;
|
||||||
@@ -26,6 +19,7 @@ namespace OpenWifi {
|
|||||||
if(QB_.CountOnly) {
|
if(QB_.CountOnly) {
|
||||||
return ReturnCountOnly(DB_.Count());
|
return ReturnCountOnly(DB_.Count());
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<RecordType> Records;
|
std::vector<RecordType> Records;
|
||||||
DB_.GetRecords(QB_.Offset,QB_.Limit,Records);
|
DB_.GetRecords(QB_.Offset,QB_.Limit,Records);
|
||||||
return ReturnObject(Records);
|
return ReturnObject(Records);
|
||||||
|
|||||||
Reference in New Issue
Block a user