deckkezeles, es deckek eltarolasa

This commit is contained in:
2025-10-20 17:26:27 +02:00
parent 75f2b215a1
commit 5194308f7c
3 changed files with 74 additions and 24 deletions
+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
}