aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorzephex-alt <[email protected]>2024-05-08 04:28:47 +0000
committerGitHub <[email protected]>2024-05-08 04:28:47 +0000
commit1ed303615a24ebbb2488c6fcc899af6a82870000 (patch)
treefeb9a8d943a7c91076d5ff691fba653dc5b4d36c /utils
parentminor css fixes and added a new source for movies (diff)
parentDelete .github/workflows/eslint.yml (diff)
downloaddramalama-1ed303615a24ebbb2488c6fcc899af6a82870000.tar.xz
dramalama-1ed303615a24ebbb2488c6fcc899af6a82870000.zip
minor css fixes and added a new source for movies
Diffstat (limited to 'utils')
-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}`;