Backend:
- Enhance PeopleController with person credits and TMDB filmography endpoints; - update episodeService to filter entries by showInCalendar; - add fetchPersonCombinedCredits function in tmdbService
This commit is contained in:
1 parent
ffe7e52527
commit
11eab03987
5 files changed
+36
-7
No files matched your search
@@ -22,6 +22,12 @@ peopleRouter.get('/search', peopleController.searchPeople);
|
||||
// Get person by ID
|
||||
peopleRouter.get('/:id', peopleController.getPersonById);
|
||||
|
||||
// Get person credits (from DB)
|
||||
peopleRouter.get('/:id/credits', peopleController.getPersonCredits);
|
||||
|
||||
// Get person TMDB filmography (all TMDB credits including non-library entries)
|
||||
peopleRouter.get('/:id/tmdb-filmography', peopleController.getPersonTmdbFilmography);
|
||||
|
||||
// Create a new person
|
||||
peopleRouter.post('/', peopleController.createPerson);
|
||||
|
||||
@@ -37,9 +43,6 @@ peopleRouter.put('/:id/refresh', peopleController.refreshPerson);
|
||||
// Delete a person
|
||||
peopleRouter.delete('/:id', peopleController.deletePerson);
|
||||
|
||||
// Get person credits
|
||||
peopleRouter.get('/:id/credits', peopleController.getPersonCredits);
|
||||
|
||||
// Person media upload handler
|
||||
const upload = peoplePicturesUpload.fields([
|
||||
{ name: 'profile', maxCount: 1 }
|
||||
|
||||
Reference in new issue
Block a user