mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-19 05:09:29 +00:00
lesson 4 live 30/12
This commit is contained in:
@@ -1,14 +1,9 @@
|
||||
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
|
||||
import { baseQueryWithReauth } from '@/services/base-query-with-reauth'
|
||||
import { createApi } from '@reduxjs/toolkit/query/react'
|
||||
|
||||
export const baseApi = createApi({
|
||||
baseQuery: fetchBaseQuery({
|
||||
baseUrl: 'https://api.flashcards.andrii.es',
|
||||
credentials: 'include',
|
||||
prepareHeaders: headers => {
|
||||
headers.append('x-auth-skip', 'true')
|
||||
},
|
||||
}),
|
||||
baseQuery: baseQueryWithReauth,
|
||||
endpoints: () => ({}),
|
||||
reducerPath: 'baseApi',
|
||||
tagTypes: ['Decks'],
|
||||
tagTypes: ['Decks', 'Me'],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user