~aleteoryx/muditaos

ref: 25250fc9c8730d958eb4b7417bac2be0686a6eaf muditaos/module-services/service-desktop/endpoints/bluetooth/BluetoothEndpoint.cpp -rw-r--r-- 782 bytes
25250fc9 — Tomasz Rybarski [BH-1314] Home Screen Layouts Selectable 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include <endpoints/bluetooth/BluetoothEndpoint.hpp>

namespace sdesktop::endpoints
{

    auto BluetoothEndpoint::handle(Context &context) -> void
    {
        switch (context.getMethod()) {
        case http::Method::get:
            helper->processGetRequest(context);
            break;
        case http::Method::post:
            helper->processPostRequest(context);
            break;
        case http::Method::put:
            helper->processPutRequest(context);
            break;
        case http::Method::del:
            helper->processDeleteRequest(context);
            break;
        }
    }

} // namespace sdesktop::endpoints