Get api/books pour la page catalogue

This commit is contained in:
2026-06-11 04:32:20 -04:00
parent 4e1a0b24f4
commit b99dcd8592
6 changed files with 91 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
import client from './client';
export function getBooks(page = 0, size = 20) {
return client.get('/api/books', { params: { page, size } });
}
+7
View File
@@ -0,0 +1,7 @@
import axios from 'axios';
const client = axios.create({
baseURL: 'http://localhost:8080',
});
export default client;