~aleteoryx/muditaos

ref: bff70a4ab3b0cc02bd10d5914b91752155a0be91 muditaos/module-services/service-desktop/endpoints/nullEndpoint/NullEndpoint.cpp -rw-r--r-- 572 bytes
bff70a4a — Przemyslaw Brudny [BH-1029] Refactored Time widgets with colon and content change 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include <endpoints/nullEndpoint/NullEndpoint.hpp>
#include <endpoints/message/Sender.hpp>

namespace sdesktop::endpoints
{

    auto NullEndpoint::handle(Context &context) -> void
    {
        context.setResponseStatus(http::Code::BadRequest);
        sender::putToSendQueue(context.createSimpleResponse());
        LOG_DEBUG("Unknown Endpoint #%d", static_cast<int>(context.getEndpoint()));
    }

} // namespace sdesktop::endpoints