From 9a07689dfeb736341b4f1b378e0ec758ea9cd0ff Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Sat, 6 Jul 2024 02:33:06 -0400 Subject: feat: Add NFC tag writing functionality to ChoreCard component, Add Email to sign up --- src/utils/Fetcher.jsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/utils') 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, -- cgit