diff options
| author | real-zephex <[email protected]> | 2024-05-07 03:38:39 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-07 03:38:39 +0530 |
| commit | ec22f9e3fa3e64a2d79331325c753bbaf05b2ebd (patch) | |
| tree | deb3da965856da224b89ddf0441175256eddb39e /utils | |
| parent | Merge pull request #16 from zephex-alt/master (diff) | |
| parent | last minute fixes (diff) | |
| download | dramalama-ec22f9e3fa3e64a2d79331325c753bbaf05b2ebd.tar.xz dramalama-ec22f9e3fa3e64a2d79331325c753bbaf05b2ebd.zip | |
Merge pull request #17 from zephex-alt/master
Added MOVIES support
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/movie_urls.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/movie_urls.js b/utils/movie_urls.js new file mode 100644 index 0000000..20cbfef --- /dev/null +++ b/utils/movie_urls.js @@ -0,0 +1,8 @@ +const API_KEY = "171fe27dbfecc58e2a18fbced644cda9"; + +// MOVIES +export const TRENDING = `https://api.themoviedb.org/3/trending/movie/day?api_key=${API_KEY}`; +export const SEARCH = `https://api.themoviedb.org/3/search/movie?api_key=${API_KEY}&query=`; +export const POPULAR = `https://api.themoviedb.org/3/movie/popular?api_key=${API_KEY}`; +export const getInfoURL = (movieId) => + `https://api.themoviedb.org/3/movie/${movieId}?api_key=${API_KEY}`; |