🪄 Formats FeatureService

This commit is contained in:
Rune Harlyk
2024-07-09 20:04:41 +02:00
committed by Rune Harlyk
parent 38288a47e5
commit a19d789174
2 changed files with 5 additions and 8 deletions
+4 -6
View File
@@ -24,22 +24,20 @@
#define FEATURES_SERVICE_PATH "/api/features"
typedef struct
{
typedef struct {
String feature;
bool enabled;
} UserFeature;
class FeaturesService
{
public:
class FeaturesService {
public:
FeaturesService(PsychicHttpServer *server);
void begin();
void addFeature(String feature, bool enabled);
private:
private:
PsychicHttpServer *_server;
std::vector<UserFeature> userFeatures;
};