summaryrefslogtreecommitdiff
path: root/client/src/apiSlice.ts
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-07-06 12:17:54 -0700
committerMichael Hunteman <michael@huntm.net>2024-07-06 12:17:54 -0700
commitb9b8099da1a098300d11e0f479d56e24e363e076 (patch)
treeec16d05e7d6f39edbd1bc3d74e30ad102a6f5cc9 /client/src/apiSlice.ts
parent07752babb4e692452e1cd7f2133c4d8dde1b3b1c (diff)
Secure PUT endpoint
Diffstat (limited to 'client/src/apiSlice.ts')
-rw-r--r--client/src/apiSlice.ts4
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;
},