import client from './client';

export function getBooks(page = 0, size = 20) {
  return client.get('/api/books', { params: { page, size } });
}

export function registerBook(book) {
  return client.post('/api/books', book);
}