fix: people details page not working for people that are not in db

This commit is contained in:
Mohammed Abad committed 2026-04-27 12:33:02 +01:00
1 parent 0329808562
commit 8aca121b10
5 files changed
+317 -20

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ const peopleController = require('../controllers/peopleController');
// ! TMDB PROXY ROUTES (must be before /:id to avoid matching)
peopleRouter.get('/tmdb/popular', peopleController.getTmdbPopularPeople);
peopleRouter.get('/tmdb/search', peopleController.searchTmdbPeople);
peopleRouter.get('/tmdb/preview/:tmdbId', peopleController.getTmdbPersonPreview);
// Get all people
peopleRouter.get('/', peopleController.getAllPeople);