From e25a5d08b74b28dc1b2354fcb64cf225c1eab208 Mon Sep 17 00:00:00 2001 From: zephex-alt <166333351+zephex-alt@users.noreply.github.com> Date: Mon, 6 May 2024 21:37:34 +0000 Subject: added MOVIES support. SERIES support coming soon! --- utils/movie_urls.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 utils/movie_urls.js (limited to 'utils') 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}`; -- cgit v1.2.3