feat: added favorites page
This commit is contained in:
1 parent
0cb860d0a0
commit
89e76f5df6
27 files changed
+412
-116
No files matched your search
+10
-1
@@ -1,16 +1,25 @@
|
||||
import client from '@/network';
|
||||
|
||||
const API = {
|
||||
top({ page }: { page: string }): Promise<MovieDBResponse> {
|
||||
top({ page, starring }: { page: string; starring: string | null }): Promise<MovieDBResponse> {
|
||||
return client.get('/discover', {
|
||||
params: {
|
||||
page,
|
||||
with_cast: starring,
|
||||
with_people: starring,
|
||||
sort_by: 'vote_average.desc',
|
||||
'vote_count.gte': 300,
|
||||
'vote_average.lte': 10,
|
||||
'vote_average.gte': 0
|
||||
}
|
||||
});
|
||||
},
|
||||
person({ id }: { id: string }): Promise<Person> {
|
||||
return client.get('/person', {
|
||||
params: {
|
||||
id
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user