From e1fd12e23363af1b978bb86ea72b13ccf99f31cf Mon Sep 17 00:00:00 2001 From: Arthur Lefebvre Date: Fri, 23 Jan 2026 14:48:05 +0100 Subject: [PATCH] fixup! Search API: use a single query with result and count --- front/src/api.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/front/src/api.js b/front/src/api.js index e456a89..80ca4d0 100644 --- a/front/src/api.js +++ b/front/src/api.js @@ -37,10 +37,6 @@ export function getMyBooks(data, error, arg, limit, offset) { return useFetch(data, error, baseUrl + '/mybooks/' + arg + "?" + queryParams.toString()); } -export function getCountSearchBooks(data, error, searchterm) { - return useFetch(data, error,baseUrl + '/search/' + encodeURIComponent(searchterm) + '/count') -} - export function getSearchBooks(data, error, searchterm, lang, limit, offset) { const queryParams = new URLSearchParams({lang: lang, limit: limit, offset: offset}); return useFetch(data, error, baseUrl + '/search/' + encodeURIComponent(searchterm) + "?" + queryParams.toString());