aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-01 22:12:19 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-01 22:12:19 -0400
commit5e54da8271c7fac5062f0aca9b10e7370fd4bae2 (patch)
tree376e53b60c9639d9db80cbcd809212253f29f0d0 /src/utils
parent6bc28be9e351662025a3eb0662f32902e64eb143 (diff)
downloaddonetick-frontend-5e54da8271c7fac5062f0aca9b10e7370fd4bae2.tar.gz
donetick-frontend-5e54da8271c7fac5062f0aca9b10e7370fd4bae2.tar.bz2
donetick-frontend-5e54da8271c7fac5062f0aca9b10e7370fd4bae2.zip
Update button re-enable timeout to 3 seconds, update thing history
Diffstat (limited to '')
-rw-r--r--src/utils/Fetcher.jsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/Fetcher.jsx b/src/utils/Fetcher.jsx
index 6444b34..be3971c 100644
--- a/src/utils/Fetcher.jsx
+++ b/src/utils/Fetcher.jsx
@@ -197,6 +197,13 @@ const DeleteThing = id => {
})
}
+const GetThingHistory = (id, offset) => {
+ return Fetch(`${API_URL}/things/${id}/history?offset=${offset}`, {
+ method: 'GET',
+ headers: HEADERS(),
+ })
+}
+
const CreateLongLiveToken = name => {
return Fetch(`${API_URL}/users/tokens`, {
method: 'POST',
@@ -236,6 +243,7 @@ export {
GetCircleMemberRequests,
GetLongLiveTokens,
GetSubscriptionSession,
+ GetThingHistory,
GetThings,
GetUserCircle,
GetUserProfile,