fix(backend): include EpisodeSeen in season episodes and add entry credits endpoint
- Add getEntryCredits service method returning all cast + crew with People, ordered by cast_type, order, episode_count - Add getEntryCredits controller method - Add GET /entries/:id/credits route in entry.routes.js - Include EpisodeSeen association in getSeasonEpisodes so seen dates are returned to frontend
This commit is contained in:
1 parent
e460290b9b
commit
22d111ef71
7 files changed
+51
-3
No files matched your search
@@ -29,6 +29,7 @@ All endpoints are prefixed with `/api/v1`. See [[Backend]] for server setup.
|
||||
| `PUT` | `/entries/:id/ids` | Update external IDs |
|
||||
| `DELETE` | `/entries/:id` | Delete entry and all related data |
|
||||
| `GET` | `/entries/:id/seasons` | Get all seasons for a TV entry |
|
||||
| `GET` | `/entries/:id/credits` | Get ALL credits (cast + crew) for an entry, with associated `person` populated. Used by [[Pages#EntryCastsPage\|EntryCastsPage]] |
|
||||
| `PUT` | `/entries/:id/refresh` | Force refresh from TMDB |
|
||||
| `PUT` | `/entries/:id/fetch-collection` | Fetch/create TMDB collection for entry |
|
||||
| `GET` | `/entries/sync-series` | Batch refresh all non-ended TV series |
|
||||
|
||||
Reference in new issue
Block a user