fix: fix search

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-10-15 16:31:58 +02:00
parent 3170a7c60e
commit 50b33f53d7

View File

@@ -80,7 +80,7 @@ export class ApiMangaRepository {
async searchMangas(query) { async searchMangas(query) {
try { try {
const response = await fetch(`/api/mangas/search?q=${encodeURIComponent(query)}`); const response = await fetch(`/api/manga-search?q=${encodeURIComponent(query)}`);
if (!response.ok) { if (!response.ok) {
throw new Error('Failed to search mangas'); throw new Error('Failed to search mangas');
} }