Removed unused POST route for instagram api example

pull/2/head
Sahat Yalkabov 2014-04-30 00:02:05 -04:00
parent f32ac49bb6
commit 5ce1cb4444
2 changed files with 0 additions and 15 deletions

1
app.js
View File

@ -150,7 +150,6 @@ app.get('/api/venmo', passportConf.isAuthenticated, passportConf.isAuthorized, a
app.post('/api/venmo', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.postVenmo);
app.get('/api/linkedin', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.getLinkedin);
app.get('/api/instagram', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.getInstagram);
app.post('/api/instagram', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.postInstagram);
/**
* OAuth routes for sign-in.

View File

@ -539,18 +539,4 @@ exports.getInstagram = function(req, res, next) {
popularImages: results.popularImages
});
});
};
exports.postInstagram = function(req, res, next) {
var token = _.findWhere(req.user.tokens, { kind: 'instagram' });
ig.use({ access_token: token });
ig.use({ client_id: secrets.instagram.clientID, client_secret: secrets.instagram.clientSecret });
ig.user_search('13reasons', function(err, users, limit) {
console.log(users);
});
};