Files
wlan-cloud-owls/src/RESTAPI/RESTAPI_routers.cpp
2023-02-21 13:44:19 -08:00

32 lines
1.3 KiB
C++

//
// Created by stephane bourque on 2021-10-23.
//
#include "framework/RESTAPI_SystemCommand.h"
#include "framework/RESTAPI_WebSocketServer.h"
#include "RESTAPI/RESTAPI_deviceDashboardHandler.h"
#include "RESTAPI/RESTAPI_operation_handler.h"
#include "RESTAPI/RESTAPI_results_handler.h"
#include "RESTAPI/RESTAPI_simulation_handler.h"
#include "RESTAPI/RESTAPI_status_handler.h"
namespace OpenWifi {
Poco::Net::HTTPRequestHandler *
RESTAPI_ExtRouter(const std::string &Path, RESTAPIHandler::BindingMap &Bindings,
Poco::Logger &L, RESTAPI_GenericServerAccounting &S, uint64_t TransactionId) {
return RESTAPI_Router<RESTAPI_system_command, RESTAPI_deviceDashboardHandler,
RESTAPI_operation_handler, RESTAPI_results_handler,
RESTAPI_simulation_handler, RESTAPI_status_handler,
RESTAPI_webSocketServer>(Path, Bindings, L, S, TransactionId);
}
Poco::Net::HTTPRequestHandler *
RESTAPI_IntRouter(const std::string &Path, RESTAPIHandler::BindingMap &Bindings,
Poco::Logger &L, RESTAPI_GenericServerAccounting &S, uint64_t TransactionId) {
return RESTAPI_Router_I<RESTAPI_operation_handler, RESTAPI_results_handler,
RESTAPI_simulation_handler, RESTAPI_system_command>(
Path, Bindings, L, S, TransactionId);
}
} // namespace OpenWifi