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,12 +2,6 @@
// Created by stephane bourque on 2021-07-13.
//
#include "RESTAPI_historyHandler.h"
//
// Created by stephane bourque on 2021-05-09.
//
#include "RESTAPI_historyHandler.h"
#include "StorageService.h"
#include "framework/RESTAPI_protocol.h"
@@ -23,7 +17,7 @@ namespace OpenWifi {
}
FMSObjects::RevisionHistoryEntryVec H;
if (Storage()->GetHistory(SerialNumber, QB_.Offset, QB_.Limit, H)) {
if (StorageService()->GetHistory(SerialNumber, QB_.Offset, QB_.Limit, H)) {
Poco::JSON::Array A;
for (auto const &i:H) {
Poco::JSON::Object O;
@@ -44,7 +38,7 @@ namespace OpenWifi {
return BadRequest(RESTAPI::Errors::IdOrSerialEmpty);
}
if (!Storage()->DeleteHistory(SerialNumber, Id)) {
if (!StorageService()->DeleteHistory(SerialNumber, Id)) {
return OK();
}
NotFound();