~aleteoryx/muditaos

ref: 1ab84f774fd4cb6f2284157c3e1425df4986348b muditaos/module-services/service-desktop/endpoints/nullEndpoint/NullEndpoint.cpp -rw-r--r-- 572 bytes
1ab84f77 — Kuba [EGD-7720] Unmounting file system on system closure 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