mirror of
https://github.com/mjrode/WhatToWatch.git
synced 2025-12-31 10:40:20 -06:00
22 lines
635 B
JavaScript
22 lines
635 B
JavaScript
import {Router} from 'express';
|
|
import plexService from '../services/plex';
|
|
|
|
const router = Router();
|
|
|
|
router.get('/token', plexService.getAuthToken);
|
|
|
|
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);
|
|
|
|
router.get('/import/all', plexService.importAll);
|
|
|
|
export default router;
|