aladhefafalquran commited on
Commit
afdd18a
·
1 Parent(s): 9ab5284

Fix TMDB auth: use api_key param

Browse files
Files changed (1) hide show
  1. apps/server/src/routes/tmdb.ts +1 -4
apps/server/src/routes/tmdb.ts CHANGED
@@ -6,10 +6,7 @@ const router: Router = Router()
6
 
7
  const tmdb = axios.create({
8
  baseURL: 'https://api.themoviedb.org/3',
9
- headers: {
10
- Authorization: `Bearer ${env.TMDB_API_KEY}`,
11
- 'Content-Type': 'application/json',
12
- },
13
  })
14
 
15
  async function proxyGet(path: string, params?: Record<string, string>) {
 
6
 
7
  const tmdb = axios.create({
8
  baseURL: 'https://api.themoviedb.org/3',
9
+ params: { api_key: env.TMDB_API_KEY },
 
 
 
10
  })
11
 
12
  async function proxyGet(path: string, params?: Record<string, string>) {