Refactoring project layout.

This commit is contained in:
stephb9959
2021-10-21 20:19:55 -07:00
parent db49d0b693
commit 6285fcf08a
82 changed files with 4311 additions and 4162 deletions

View File

@@ -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);