feat(backend): add TMDB preview endpoint for non-library entries
- Add GET /entries/tmdb/preview/:type/:tmdbId endpoint in entryController.js - Fetch TMDB data via tmdbService.fetchEntryData() without persisting to DB - Return normalized preview object with title, poster, genres, rating, season/episode counts
This commit is contained in:
1 parent
6aa57cbe71
commit
25b645a16f
13 files changed
+199
-10
No files matched your search
@@ -35,6 +35,16 @@ class MaintenanceController {
|
||||
return res.status(200).json(deleted);
|
||||
}
|
||||
|
||||
async getOrphanPeople(req, res) {
|
||||
const result = await _maintenanceService.deleteOrphanPeople(true);
|
||||
return res.status(200).json(result);
|
||||
}
|
||||
|
||||
async deleteOrphanPeople(req, res) {
|
||||
const result = await _maintenanceService.deleteOrphanPeople();
|
||||
return res.status(200).json(result);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = new MaintenanceController();
|
||||
Reference in new issue
Block a user