diff options
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: '' } ) }) |