~aleteoryx/muditaos

ref: 06d16390c21c37457bc875e841bb12039d1123d7 muditaos/module-services/service-desktop/endpoints/developerMode/event/DomRequest.cpp -rw-r--r-- 532 bytes
06d16390 — Lefucjusz [MOS-1021] Fix blocked passcode behavior 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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