diff options
author | Michael Hunteman <michael@huntm.net> | 2024-07-06 12:17:54 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-07-06 12:17:54 -0700 |
commit | b9b8099da1a098300d11e0f479d56e24e363e076 (patch) | |
tree | ec16d05e7d6f39edbd1bc3d74e30ad102a6f5cc9 /client/src | |
parent | 07752babb4e692452e1cd7f2133c4d8dde1b3b1c (diff) |
Secure PUT endpoint
Diffstat (limited to 'client/src')
-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; }, |