We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfac75d commit 1467194Copy full SHA for 1467194
1 file changed
client/src/features/dataConnectorsV2/api/data-connectors.empty-api.ts
@@ -18,9 +18,15 @@
18
19
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";
20
21
+import { API_BASE_URL } from "~/utils/api/api.constants";
22
+import { prepareHeaders } from "~/utils/api/api.utils";
23
+
24
// initialize an empty api service that we'll inject endpoints into later as needed
25
export const dataConnectorsEmptyApi = createApi({
- baseQuery: fetchBaseQuery({ baseUrl: "/api/data" }),
26
+ baseQuery: fetchBaseQuery({
27
+ baseUrl: API_BASE_URL,
28
+ prepareHeaders,
29
+ }),
30
endpoints: () => ({}),
31
reducerPath: "dataConnectorsApi",
32
});
0 commit comments