serier och taggar

This commit is contained in:
2025-09-11 01:26:06 +02:00
parent e23822b30c
commit f88c25f117
8 changed files with 242 additions and 1 deletions

View File

@@ -25,6 +25,17 @@ const BibblanService = {
const response = await fetch(url);
return response.json();
},
getSeries: async (
query: string | undefined = undefined
): Promise<author[]> => {
let url = "/api/bibblan/series";
if (query != undefined && query.length > 0) {
url += `?query=${encodeURIComponent(query)}`;
}
const response = await fetch(url);
return response.json();
},
};
export default BibblanService;