refactoring: server actions => tmdb proxy

This commit is contained in:
ner committed 2024-10-28 20:04:36 +02:00
1 parent dfdfb79169
commit 97d55b24a1
13 files changed
+131 -113

No files matched your search

+3 -3
View File
@@ -1,7 +1,7 @@
import { MOVIE_DB_TOKEN } from '@/env';
import { MOVIE_DB_API_URL, MOVIE_DB_TOKEN } from '@/env';
import Http from './Http';
const theMovieDb = new Http('https://api.themoviedb.org/3', `Bearer ${MOVIE_DB_TOKEN}`);
const theMovieDB = new Http(MOVIE_DB_API_URL, `Bearer ${MOVIE_DB_TOKEN}`);
export default theMovieDb;
export default theMovieDB;