Skip to content

Commit fe74c61

Browse files
committed
Fix frontend API configuration for production
1 parent 998f5d8 commit fe74c61

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web/src/redux/user/userSlice.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import { API_ROOT } from '~/utils/constants'
66
const initialState = { currentUser: null }
77

88
export const loginUserAPI = createAsyncThunk('activeBoard/loginUserAPI', async (data) => {
9-
const response = await authorizedAxiosInstance.post(`${API_ROOT}/v1/users/login`, data)
9+
const response = await authorizedAxiosInstance.post('/v1/users/login', data)
1010
return response.data
1111
})
1212

1313
export const logoutUserAPI = createAsyncThunk('user/logoutUserAPI', async (showSuccessMessage) => {
14-
const response = await authorizedAxiosInstance.delete(`${API_ROOT}/v1/users/logout`)
14+
const response = await authorizedAxiosInstance.delete('/v1/users/logout')
1515
if (showSuccessMessage) {
1616
toast.success('Logged out successfully')
1717
}

0 commit comments

Comments
 (0)