aboutsummaryrefslogtreecommitdiff
path: root/utils/movie_urls.js
diff options
context:
space:
mode:
Diffstat (limited to 'utils/movie_urls.js')
-rw-r--r--utils/movie_urls.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/movie_urls.js b/utils/movie_urls.js
index 20cbfef..eb512aa 100644
--- a/utils/movie_urls.js
+++ b/utils/movie_urls.js
@@ -1,8 +1,9 @@
const API_KEY = "171fe27dbfecc58e2a18fbced644cda9";
+const PROXY = "https://sup-proxy.zephex0-f6c.workers.dev/api-json?url=";
// MOVIES
-export const TRENDING = `https://api.themoviedb.org/3/trending/movie/day?api_key=${API_KEY}`;
+export const TRENDING = `${PROXY}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 POPULAR = `${PROXY}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}`;
+ `${PROXY}https://api.themoviedb.org/3/movie/${movieId}?api_key=${API_KEY}`;