From b9b8099da1a098300d11e0f479d56e24e363e076 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Sat, 6 Jul 2024 12:17:54 -0700 Subject: Secure PUT endpoint --- client/src/apiSlice.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/src/apiSlice.ts b/client/src/apiSlice.ts index 7842da8..514f8b1 100644 --- a/client/src/apiSlice.ts +++ b/client/src/apiSlice.ts @@ -30,11 +30,11 @@ export interface PartyGuest { export const apiSlice = createApi({ reducerPath: 'api', baseQuery: fetchBaseQuery({ - baseUrl: 'http://localhost:8080/', + baseUrl: 'http://192.168.1.41:8080/', prepareHeaders: (headers, { getState }) => { const token = (getState() as RootState).auth.token; if (token) { - headers.set('authorization', `Bearer ${token}`); + headers.set('authorization', `${token}`); } return headers; }, -- cgit v1.2.3