mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralfms.git
synced 2025-11-21 12:34:57 +00:00
Refactoring project layout.
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
// Created by stephane bourque on 2021-07-18.
|
||||
//
|
||||
|
||||
#include "RESTAPI_connectedDevicesHandler.h"
|
||||
#include "RESTAPI_FMSObjects.h"
|
||||
#include "Poco/JSON/Object.h"
|
||||
#include "Poco/JSON/Array.h"
|
||||
|
||||
#include "RESTAPI_connectedDevicesHandler.h"
|
||||
#include "RESTObjects/RESTAPI_FMSObjects.h"
|
||||
#include "StorageService.h"
|
||||
#include "framework/RESTAPI_protocol.h"
|
||||
|
||||
@@ -14,7 +15,7 @@ namespace OpenWifi {
|
||||
std::vector<FMSObjects::DeviceConnectionInformation> Devices;
|
||||
Poco::JSON::Object AnswerObj;
|
||||
Poco::JSON::Array AnswerArr;
|
||||
if (Storage()->GetDevices(QB_.Offset, QB_.Limit, Devices)) {
|
||||
if (StorageService()->GetDevices(QB_.Offset, QB_.Limit, Devices)) {
|
||||
for (const auto &i:Devices) {
|
||||
Poco::JSON::Object Obj;
|
||||
i.to_json(Obj);
|
||||
|
||||
Reference in New Issue
Block a user