~aleteoryx/muditaos

ref: 6c32205e1be369cbadf752c77eff68d1a2f963e1 muditaos/module-services/service-desktop/endpoints/bluetooth/BluetoothEndpoint.cpp -rw-r--r-- 686 bytes
6c32205e — Marek Niepieklo [CP-371] Updater miscelanous developer mode and logs changes 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
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "BluetoothEndpoint.hpp"
#include <endpoints/Context.hpp>

using namespace parserFSM;

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;
    }
}