From 3171bbd817358e449e7d4bf249b556a84937da5d Mon Sep 17 00:00:00 2001 From: GreenWizard2015 Date: Wed, 3 Jan 2024 08:43:21 +0000 Subject: [PATCH] fix api endpoint --- ui/src/api/CWaterPumpAPI.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/api/CWaterPumpAPI.js b/ui/src/api/CWaterPumpAPI.js index c3f8f03..341ec20 100644 --- a/ui/src/api/CWaterPumpAPI.js +++ b/ui/src/api/CWaterPumpAPI.js @@ -6,8 +6,8 @@ class CWaterPumpAPI { } async start(runTimeMs) { - const response = await this._client.get('/start', { - runTimeMs: runTimeMs + const response = await this._client.get('/pour_tea', { + milliseconds: runTimeMs, }); return response.data; }