1
Fork 0
mirror of https://github.com/RGBCube/GDUS synced 2025-07-28 21:47:45 +00:00

Return OK

This commit is contained in:
RGBCube 2023-12-20 12:33:21 +03:00
parent 60c3201ddf
commit be1bb01bdf
No known key found for this signature in database
5 changed files with 44 additions and 21 deletions

View file

@ -109,7 +109,8 @@ async fn view(data: Data<SqlitePool>) -> web::Result<Markup> {
const differenceSeconds = currentTime - reminder.timestamp;
if (differenceSeconds < 1 * 60) {
fetch("http://localhost:3000/toggle").then(console.log);
fetch("http://localhost:3000/toggle-led").then(console.log);
fetch("http://localhost:3000/speak?" + new URLSearchParams({ text: reminder.content })).then(console.log);
}
});
};