Backend: Add TMDB proxy routes and service methods for trending, popular, and search functionalities
This commit is contained in:
1 parent
35835e9187
commit
236e6e06fb
6 files changed
+126
-5
No files matched your search
@@ -6,6 +6,10 @@ const peopleController = require('../controllers/peopleController');
|
||||
|
||||
// ! /people
|
||||
|
||||
// ! TMDB PROXY ROUTES (must be before /:id to avoid matching)
|
||||
peopleRouter.get('/tmdb/popular', peopleController.getTmdbPopularPeople);
|
||||
peopleRouter.get('/tmdb/search', peopleController.searchTmdbPeople);
|
||||
|
||||
// Get all people
|
||||
peopleRouter.get('/', peopleController.getAllPeople);
|
||||
|
||||
@@ -55,7 +59,7 @@ peopleRouter.post('/:id/media', upload, async (req, res) => {
|
||||
|
||||
// Generate preview for profile picture
|
||||
const previewPath = await mediaOptimizerService.doGeneratePreview('people', 'profiles', fileName);
|
||||
|
||||
|
||||
result.files.push({
|
||||
type: 'profile',
|
||||
original: fileName,
|
||||
|
||||
Reference in new issue
Block a user