diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/apiSlice.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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; }, |