Refactoring and adding VariableBlocks.

This commit is contained in:
stephb9959
2022-02-23 22:27:59 -08:00
parent df70ec8f40
commit 73a096b0ad
35 changed files with 518 additions and 90 deletions

View File

@@ -5,6 +5,7 @@
#pragma once
#include "framework/MicroService.h"
#include "StorageService.h"
namespace OpenWifi {
@@ -17,9 +18,11 @@ namespace OpenWifi {
Poco::Net::HTTPRequest::HTTP_OPTIONS},
Server,
TransactionId,
Internal) {}
Internal),
DB_(StorageService()->LocationDB()){}
static const std::list<const char *> PathName() { return std::list<const char *>{"/api/v1/location"}; };
private:
LocationDB & DB_;
void DoGet() final;
void DoPost() final {};
void DoPut() final {};