Skip to content

Commit

Permalink
fix base url
Browse files Browse the repository at this point in the history
  • Loading branch information
ciur committed Sep 25, 2024
1 parent a69b117 commit 32a5825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui2/src/features/api/slice.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {createApi, fetchBaseQuery} from "@reduxjs/toolkit/query/react"
import {getBaseURL} from "@/utils"
import {createApi, fetchBaseQuery} from "@reduxjs/toolkit/query/react"

import type {RootState} from "@/app/types"

const baseQuery = fetchBaseQuery({
baseUrl: `${getBaseURL()}api`,
baseUrl: `${getBaseURL()}/api`,
prepareHeaders: (headers, {getState}) => {
const state = getState() as RootState
const token = state.auth.token
Expand Down

0 comments on commit 32a5825

Please sign in to comment.