mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-18 05:09:23 +00:00
15 lines
383 B
TypeScript
15 lines
383 B
TypeScript
import { createApi, fetchBaseQuery } 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')
|
|
},
|
|
}),
|
|
endpoints: () => ({}),
|
|
reducerPath: 'baseApi',
|
|
tagTypes: ['Decks'],
|
|
})
|