Add LinkedIn API example route and controller

This commit is contained in:
Sahat Yalkabov
2014-02-27 14:48:09 -05:00
parent 67b19e3ab2
commit f80546bf84
2 changed files with 61 additions and 17 deletions

1
app.js
View File

@@ -132,6 +132,7 @@ app.get('/api/github', passportConf.isAuthenticated, passportConf.isAuthorized,
app.get('/api/twitter', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.getTwitter);
app.get('/api/venmo', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.getVenmo);
app.post('/api/venmo', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.postVenmo);
app.get('/api/linkedin', apiController.getLinkedin);
/**
* OAuth routes for sign-in.