Files
MuditaOS/module-services/service-desktop/endpoints/nullEndpoint/NullEndpoint.cpp
Mateusz Piesta 2f42cd5e73 [BH-1424] FreeRTOS update
Updated FreeRTOS source code to 10.4.6.
Moved FreeRTOS sources to the third-party directory.
Added necessary changes to the CMake configuration.
Split FreeRTOSConfig.h. From now, each board has its own.
Added missing log headers.
Minor refactor of the module-os cmake.
Fixed stack overflows in bell application main and time service.
2022-04-07 13:31:28 +02:00

19 lines
595 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/nullEndpoint/NullEndpoint.hpp>
#include <endpoints/message/Sender.hpp>
#include <log/log.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