Removed unused POST route for instagram api example
This commit is contained in:
1
app.js
1
app.js
@ -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.
|
||||
|
@ -540,17 +540,3 @@ exports.getInstagram = function(req, res, next) {
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
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);
|
||||
});
|
||||
|
||||
};
|
Reference in New Issue
Block a user