add new endpoints, add tag types to base api

This commit is contained in:
2023-10-09 13:23:57 +02:00
parent 27da2dc299
commit 46aab2f67f
2 changed files with 41 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
export const baseApi = createApi({
reducerPath: 'baseApi',
tagTypes: ['Decks'],
baseQuery: fetchBaseQuery({
baseUrl: 'https://api.flashcards.andrii.es',
credentials: 'include',