aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/Fetcher.jsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/utils/Fetcher.jsx b/src/utils/Fetcher.jsx
index be3971c..0acc91f 100644
--- a/src/utils/Fetcher.jsx
+++ b/src/utils/Fetcher.jsx
@@ -51,6 +51,19 @@ const GetChoreByID = id => {
headers: HEADERS(),
})
}
+const GetChoreDetailById = id => {
+ return Fetch(`${API_URL}/chores/${id}/details`, {
+ method: 'GET',
+ headers: HEADERS(),
+ })
+}
+
+const MarkChoreComplete = id => {
+ return Fetch(`${API_URL}/chores/${id}/do`, {
+ method: 'POST',
+ headers: HEADERS(),
+ })
+}
const CreateChore = chore => {
return Fetch(`${API_URL}/chores/`, {
method: 'POST',
@@ -238,6 +251,7 @@ export {
GetAllCircleMembers,
GetAllUsers,
GetChoreByID,
+ GetChoreDetailById,
GetChoreHistory,
GetChores,
GetCircleMemberRequests,
@@ -250,6 +264,7 @@ export {
JoinCircle,
LeaveCircle,
login,
+ MarkChoreComplete,
SaveChore,
SaveThing,
signUp,