mirror of
https://github.com/mjrode/WhatToWatch.git
synced 2026-01-06 05:29:34 -06:00
Remove API folder structure.
This commit is contained in:
20
server/controllers/plex.controller.js
Normal file
20
server/controllers/plex.controller.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import {Router} from 'express';
|
||||
import plexService from '../services/plex';
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.get('/auth', plexService.getAuthToken);
|
||||
|
||||
// users
|
||||
router.get('/users', plexService.getUsers);
|
||||
|
||||
router.get('/most-watched', plexService.getMostWatched);
|
||||
router.get('/import/most-watched', plexService.importMostWatched);
|
||||
|
||||
router.get('/sections', plexService.getSections);
|
||||
router.get('/import/sections', plexService.importSections);
|
||||
|
||||
router.get('/library/:id', plexService.getLibraryDataBySection);
|
||||
router.get('/import/libraries', plexService.importLibraries);
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user