🪄 Formats FeatureService
This commit is contained in:
@@ -45,8 +45,7 @@ void FeaturesService::begin() {
|
|||||||
return response.send();
|
return response.send();
|
||||||
});
|
});
|
||||||
|
|
||||||
ESP_LOGV("FeaturesService", "Registered GET endpoint: %s",
|
ESP_LOGV("FeaturesService", "Registered GET endpoint: %s", FEATURES_SERVICE_PATH);
|
||||||
FEATURES_SERVICE_PATH);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void FeaturesService::addFeature(String feature, bool enabled) {
|
void FeaturesService::addFeature(String feature, bool enabled) {
|
||||||
|
|||||||
@@ -24,14 +24,12 @@
|
|||||||
|
|
||||||
#define FEATURES_SERVICE_PATH "/api/features"
|
#define FEATURES_SERVICE_PATH "/api/features"
|
||||||
|
|
||||||
typedef struct
|
typedef struct {
|
||||||
{
|
|
||||||
String feature;
|
String feature;
|
||||||
bool enabled;
|
bool enabled;
|
||||||
} UserFeature;
|
} UserFeature;
|
||||||
|
|
||||||
class FeaturesService
|
class FeaturesService {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
FeaturesService(PsychicHttpServer *server);
|
FeaturesService(PsychicHttpServer *server);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user