mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-04 05:06:58 -04:00
18 lines
562 B
C++
18 lines
562 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include "Service/Common.hpp"
|
|
#include "json/json11.hpp"
|
|
#include "Service/Service.hpp"
|
|
class EndpointHandler
|
|
{
|
|
public:
|
|
sys::ReturnCodes update(
|
|
uint8_t httpMethod, uint32_t uuid, json11::Json &body, std::string &responseStr, sys::Service *ownerService);
|
|
sys::ReturnCodes deviceInfo(
|
|
uint8_t httpMethod, uint32_t uuid, json11::Json &body, std::string &responseStr, sys::Service *ownerService);
|
|
|
|
private:
|
|
std::string buildResponseStr(std::size_t responseSize, std::string responsePayloadString);
|
|
};
|