Update what to do script to new API endpoint

This commit is contained in:
Evgeny
2025-01-12 09:06:43 +08:00
parent da7adad749
commit 3b033d6086

View File

@@ -1,6 +1,6 @@
-- name = "What to do?"
-- description = "Let's find you something to do"
-- data_source = "https://www.boredapi.com/"
-- data_source = "https://bored.api.lewagon.com/"
-- type = "widget"
-- author = "Evgeny Zobnin (zobnin@gmail.com)"
-- version = "1.0"
@@ -12,7 +12,7 @@ end
function on_click()
system:vibrate(100)
http:get("http://www.boredapi.com/api/activity/")
http:get("https://bored.api.lewagon.com/api/activity/")
end
function on_network_result(result)