fix: fix search
This commit is contained in:
parent
3170a7c60e
commit
50b33f53d7
@@ -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');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user