diff options
author | Michael Hunteman <michael@huntm.net> | 2024-03-01 07:44:28 -0800 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-03-01 07:44:28 -0800 |
commit | 2b3d32a641da19c9d807f1877efcbe1a130c5e23 (patch) | |
tree | 040b0bdced188912e3fbbeafdb3d2cbbc784676f /src/mocks | |
parent | fa1409d205479e9943f7b7db96a4b56ff1d29d7d (diff) |
Use guest for login and RSVP update
Diffstat (limited to 'src/mocks')
-rw-r--r-- | src/mocks/handlers.ts | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/src/mocks/handlers.ts b/src/mocks/handlers.ts index a05e370..63b1a9a 100644 --- a/src/mocks/handlers.ts +++ b/src/mocks/handlers.ts @@ -7,12 +7,31 @@ export const handlers = [ http.post('/guest-login', () => { return HttpResponse.json( { - user: { + guest: { + id: 1, firstName: 'Michael', - lastName: 'Hunteman' + lastName: 'Hunteman', + attendance: 'false', + meal: '', + restrictions: '', + plusOne: '', + advice: '' }, token, - id: 1 + } + ) + }), + http.patch('/guests/1', () => { + return HttpResponse.json( + { + id: 1, + firstName: 'Michael', + lastName: 'Hunteman', + attendance: 'true', + meal: 'beef', + restrictions: '', + plusOne: '', + advice: '' } ) }) |