mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-24 00:49:28 -04:00
In order to have different sets of endpoints for different products, we need to separate endpoints from the desktop service.
17 lines
532 B
C++
17 lines
532 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include <endpoints/developerMode/event/DomRequest.hpp>
|
|
|
|
namespace sdesktop::developerMode
|
|
{
|
|
DomRequestEvent::DomRequestEvent(Event &p) : Event(p)
|
|
{}
|
|
|
|
void DomRequestEvent::setJson(json11::Json json)
|
|
{
|
|
context.setResponseStatus(endpoints::http::Code::OK);
|
|
context.setResponseBody(json11::Json::object{{"dom", json}});
|
|
};
|
|
} // namespace sdesktop::developerMode
|