🐛 Removes camera endpoint using feature flag

This commit is contained in:
Rune Harlyk
2025-08-03 15:53:49 +02:00
parent 281fa32c89
commit cb5c095888
+2
View File
@@ -57,6 +57,7 @@ void Spot::setupServer() {
});
// CAMERA
#if USE_CAMERA
_server.on("/api/camera/still", HTTP_GET,
[this](PsychicRequest *request) { return _cameraService.cameraStill(request); });
_server.on("/api/camera/stream", HTTP_GET,
@@ -66,6 +67,7 @@ void Spot::setupServer() {
_server.on("/api/camera/settings", HTTP_POST, [this](PsychicRequest *request, JsonVariant &json) {
return _cameraService.endpoint.handleStateUpdate(request, json);
});
#endif
// SYSTEM
_server.on("/api/system/reset", HTTP_POST, system_service::handleReset);