feat: added torrents list
This commit is contained in:
1 parent
5d7a3464ed
commit
dd7339b62c
11 files changed
+2303
-5
No files matched your search
@@ -29,6 +29,22 @@ const API = {
|
||||
'release_date.lte': filters.year?.[1]
|
||||
}
|
||||
});
|
||||
},
|
||||
torrents: {
|
||||
tracker({ query }: { query: string }): Promise<Torrent[]> {
|
||||
return client.get('/torrents/tracker', {
|
||||
params: {
|
||||
query
|
||||
}
|
||||
});
|
||||
},
|
||||
pirateBay({ query }: { query: string }): Promise<Torrent[]> {
|
||||
return client.get('/torrents/pirate-bay', {
|
||||
params: {
|
||||
query
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user