mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-18 12:33:22 +00:00
add components
This commit is contained in:
@@ -9,13 +9,5 @@ export const baseApi = createApi({
|
||||
headers.append('x-auth-skip', 'true')
|
||||
},
|
||||
}),
|
||||
endpoints: builder => {
|
||||
return {
|
||||
getDecks: builder.query<any, void>({
|
||||
query: () => `v1/decks`,
|
||||
}),
|
||||
}
|
||||
},
|
||||
endpoints: () => ({}),
|
||||
})
|
||||
|
||||
export const { useGetDecksQuery } = baseApi
|
||||
|
||||
Reference in New Issue
Block a user