mirror of
https://github.com/mjrode/WhatToWatch.git
synced 2025-12-31 02:29:49 -06:00
23 lines
669 B
JavaScript
23 lines
669 B
JavaScript
import {Router} from 'express';
|
|
import passport from 'passport';
|
|
import authService from '../services/auth';
|
|
|
|
const router = Router();
|
|
|
|
router.get('/google', authService.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;
|