🐛 Adds servo config over http
This commit is contained in:
@@ -55,6 +55,11 @@ void setupServer() {
|
|||||||
return cameraService.endpoint.handleStateUpdate(request, json);
|
return cameraService.endpoint.handleStateUpdate(request, json);
|
||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
|
server.on("/api/servo/config", HTTP_GET,
|
||||||
|
[&](PsychicRequest *request) { return servoController.endpoint.getState(request); });
|
||||||
|
server.on("/api/servo/config", HTTP_POST, [&](PsychicRequest *request, JsonVariant &json) {
|
||||||
|
return servoController.endpoint.handleStateUpdate(request, json);
|
||||||
|
});
|
||||||
#if EMBED_WEBAPP
|
#if EMBED_WEBAPP
|
||||||
mountStaticAssets(server);
|
mountStaticAssets(server);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user