feat: debut d'un front vue.js + ajout de cursorrules
This commit is contained in:
parent
ca9a74fe69
commit
bee8572dc5
@@ -0,0 +1,18 @@
|
||||
export class SearchMangas {
|
||||
constructor(mangaRepository) {
|
||||
this.mangaRepository = mangaRepository;
|
||||
}
|
||||
|
||||
async execute(query) {
|
||||
if (!query || query.trim().length === 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
try {
|
||||
return await this.mangaRepository.searchMangas(query);
|
||||
} catch (error) {
|
||||
console.error('Search error:', error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user