diff options
| author | zephex-alt <[email protected]> | 2024-05-06 21:37:34 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-06 21:37:34 +0000 |
| commit | e25a5d08b74b28dc1b2354fcb64cf225c1eab208 (patch) | |
| tree | 07bc5fddd788063153c4213e4b42c1797018003d /utils | |
| parent | added MOVIES support. SERIES support coming soon! (diff) | |
| download | dramalama-e25a5d08b74b28dc1b2354fcb64cf225c1eab208.tar.xz dramalama-e25a5d08b74b28dc1b2354fcb64cf225c1eab208.zip | |
added MOVIES support. SERIES support coming soon!
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}`; |