feat: Initialize project

This commit is contained in:
ner committed 2023-08-05 12:28:04 +03:00
1 parent eccc32337f
commit 3c1050898e
65 files changed
+5661 -596

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import client from '@/network';
const API = {
search: {
byTitle({ query, page }: { query: string; page: number }): Promise<MovieDBResponse> {
return client.get('/search', {
params: {
query,
page
}
});
},
byDescription({ description }: { description: string }): Promise<Array<Movie>> {
return client.get('/search/description', {
params: {
description
}
});
}
}
};
export default API;