Add ability to link Plex account using Pin

This commit is contained in:
mjrode
2019-04-14 16:31:33 -05:00
parent aca5531e24
commit f549251b49
14 changed files with 316 additions and 19 deletions

View File

@@ -14,7 +14,7 @@ router.get(
);
router.get('/google/callback', passport.authenticate('google'), (req, res) => {
res.redirect('/most-watched');
res.redirect('/plex-pin');
});
router.get('/current_user', (req, res) => {

View File

@@ -4,6 +4,8 @@ import plexService from '../services/plex';
const router = Router();
router.get('/token', plexService.getAuthToken);
router.get('/plex-pin', plexService.getPlexPin);
router.get('/check-plex-pin', plexService.checkPlexPin);
router.get('/users', plexService.getUsers);