aboutsummaryrefslogtreecommitdiff
path: root/utils/movie_urls.js
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-05-07 08:38:08 +0530
committerreal-zephex <[email protected]>2024-05-07 08:38:08 +0530
commitd4cb608107f48c763d489411189a7a634edfdded (patch)
tree0827f8da810ca372f6e3dea8406b739ba03e43a6 /utils/movie_urls.js
parentMerge pull request #20 from zephex-alt/master (diff)
downloaddramalama-d4cb608107f48c763d489411189a7a634edfdded.tar.xz
dramalama-d4cb608107f48c763d489411189a7a634edfdded.zip
small fixes and shit
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}`;