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/slices/api/guestSlice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/slices') diff --git a/client/src/slices/api/guestSlice.ts b/client/src/slices/api/guestSlice.ts index 38deb9a..b009ff0 100644 --- a/client/src/slices/api/guestSlice.ts +++ b/client/src/slices/api/guestSlice.ts @@ -30,7 +30,7 @@ export interface PartyGuest { export const guestSlice = createApi({ reducerPath: 'guestApi', baseQuery: fetchBaseQuery({ - baseUrl: import.meta.env.VITE_BASE_URL + 'guest/', + baseUrl: import.meta.env.VITE_BASE_URL + 'guests/', prepareHeaders: (headers, { getState }) => { const token = (getState() as RootState).guest.token; if (token) { -- cgit v1.2.3