mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralfms.git
synced 2026-01-12 14:55:04 +00:00
30 lines
1.3 KiB
C++
30 lines
1.3 KiB
C++
//
|
|
// Created by stephane bourque on 2021-05-09.
|
|
//
|
|
|
|
#ifndef UCENTRALFWS_RESTAPI_FIRMWAREHANDLER_H
|
|
#define UCENTRALFWS_RESTAPI_FIRMWAREHANDLER_H
|
|
|
|
#include "RESTAPI_handler.h"
|
|
|
|
class RESTAPI_firmwareHandler : public RESTAPIHandler
|
|
{
|
|
public:
|
|
RESTAPI_firmwareHandler(const RESTAPIHandler::BindingMap & bindings,Poco::Logger & L)
|
|
: RESTAPIHandler(bindings,L,
|
|
std::vector<std::string>
|
|
{ Poco::Net::HTTPRequest::HTTP_GET,
|
|
Poco::Net::HTTPRequest::HTTP_POST,
|
|
Poco::Net::HTTPRequest::HTTP_PUT,
|
|
Poco::Net::HTTPRequest::HTTP_DELETE,
|
|
Poco::Net::HTTPRequest::HTTP_OPTIONS}) {}
|
|
void handleRequest(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response) override;
|
|
void DoPost(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response);
|
|
void DoGet(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response);
|
|
void DoDelete(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response);
|
|
void DoPut(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response);
|
|
};
|
|
|
|
|
|
#endif //UCENTRALFWS_RESTAPI_FIRMWAREHANDLER_H
|