feat: Simple search page implementation

This commit is contained in:
Aleksi Lassila
2024-05-29 21:24:42 +03:00
parent 26e24eaf17
commit f60cae5179
2 changed files with 94 additions and 5 deletions

View File

@@ -231,6 +231,17 @@ export class TmdbApi implements Api<paths> {
})
.then((res) => res.data);
searchTitles = (query: string) =>
this.getClient()
?.GET('/3/search/multi', {
params: {
query: {
query
}
}
})
.then((res) => res.data?.results || []) || Promise.resolve([]);
// OTHER
// USER