fix: people details page not working for people that are not in db
This commit is contained in:
1 parent
0329808562
commit
8aca121b10
5 files changed
+317
-20
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user