mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralfms.git
synced 2025-11-01 03:07:46 +00:00
Refactoring project layout.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user