deckkezeles, es deckek eltarolasa

This commit is contained in:
mategergely33 committed 2025-10-20 17:26:27 +02:00
1 parent 75f2b215a1
commit 5194308f7c
3 files changed
+74 -24

No files matched your search

+10
View File
@@ -10,6 +10,16 @@ export const createDeck = async (deck) => {
}
}
// Get paginated decks (authenticated)
export const getDecksPage = async (from = 0, to = 49) => {
try {
const response = await apiClient.get(`/decks/page/${from}/${to}`)
return response.data
} catch (err) {
throw err
}
}
export default {
createDeck
}