תמיכת The Movie Database

Hi I cannot seem to display the images associated with movies this is my search term https://api.themoviedb.org/3/search/movie?query=Jack+Reacher&api_key=`xyz_user`.

I have tried displaying the poster_path and also the backdrop_path and neither work as far as I can tell.

I have failed in react next.js and postman, have tried appending to path in the .jsx file like so

// const moviesWithSlash = data.results.map(movies => ({ ...movies, poster_path: '/' + movies.poster_path // Add a forward slash before the backdrop_path }));

//Errors handled
if(!response.ok){
  throw new Error(`Failed to fetch movies - Error ${response.status}: ${data.message}`)
}

return {
  props: {
    movies: data.results,
    picture: moviesWithSlash

  },

Can you help please?

.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם

עולמי

s התמקד בשורת החיפוש
p פתח תפריט פרופיל
esc סגור חלון פתוח
? פתח חלון קיצורי דרך של מקלדת

בדפי מדיה

b לך חזרה (או אל הורה אם ישים)
e לך אל דף עריכה

בדפי עונות

(חץ ימני) לך אל העונה הבאה
(חץ שמאלי) לך אל העונה הקודמת

בדפי סדרות

(חץ ימני) לך אל הפרק הבא
(חץ שמאלי) לך אל הפרק הקודם

בכל דפי תמונה

a פתח חלון הוספת תמונה

בכל דפי עריכה

t פתח בוחר תרגום
ctrl+ s הגש טופס

בדפי דיון

n צור דיון חדש
w עורר מעמד צפייה
p עורר ציבורי/פרטי
c עורר סגירה/פתיחה
a פתח פעילות
r השב אל דיון
l לך אל תשובה אחרונה
ctrl+ enter הגש את הודעתך
(חץ ימני) הדף הבא
(חץ שמאלי) הדף הקודם

הגדרות

?רוצה לדרג או להוסיף פריט אל רשימה

היכנס