From 1d2ffb8a2b6af752b6fd091e8e59682625c2b495 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Wed, 28 Aug 2024 18:07:22 -0700 Subject: Make guests endpoint plural --- client/src/mocks/handlers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/mocks') diff --git a/client/src/mocks/handlers.ts b/client/src/mocks/handlers.ts index 8dc92b7..0e882ee 100644 --- a/client/src/mocks/handlers.ts +++ b/client/src/mocks/handlers.ts @@ -4,7 +4,7 @@ import { nanoid } from '@reduxjs/toolkit'; const token = nanoid(); export const handlers = [ - http.post('/guest/login', () => { + http.post('/guests/login', () => { return HttpResponse.json({ guest: { id: 1, @@ -17,7 +17,7 @@ export const handlers = [ token, }); }), - http.patch('/guest/1', () => { + http.patch('/guests/1', () => { return HttpResponse.json({ id: 1, firstName: 'Michael', -- cgit v1.2.3