mirror of
https://github.com/RGBCube/GDUS
synced 2025-07-28 21:47:45 +00:00
Return OK
This commit is contained in:
parent
60c3201ddf
commit
be1bb01bdf
5 changed files with 44 additions and 21 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue