mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-02 11:37:54 +00:00
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
@@ -7,5 +7,14 @@
|
||||
#include "StorageService.h"
|
||||
|
||||
namespace OpenWifi {
|
||||
void RESTAPI_venue_list_handler::DoGet() { return ListHandler<VenueDB>("venues", DB_, *this); }
|
||||
void RESTAPI_venue_list_handler::DoGet() {
|
||||
auto RRMvendor = GetParameter("RRMvendor","");
|
||||
if(RRMvendor.empty()) {
|
||||
return ListHandler<VenueDB>("venues", DB_, *this);
|
||||
}
|
||||
VenueDB::RecordVec Venues;
|
||||
auto Where = fmt::format(" deviceRules LIKE '%{}%' ", RRMvendor);
|
||||
DB_.GetRecords(QB_.Offset, QB_.Limit, Venues, Where, " ORDER BY name ");
|
||||
return ReturnObject("venues",Venues);
|
||||
}
|
||||
} // namespace OpenWifi
|
||||
Reference in New Issue
Block a user