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.post('/api/venmo', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.postVenmo);
|
||||||
app.get('/api/linkedin', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.getLinkedin);
|
app.get('/api/linkedin', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.getLinkedin);
|
||||||
app.get('/api/instagram', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.getInstagram);
|
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.
|
* OAuth routes for sign-in.
|
||||||
|
@ -539,18 +539,4 @@ exports.getInstagram = function(req, res, next) {
|
|||||||
popularImages: results.popularImages
|
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);
|
|
||||||
});
|
|
||||||
|
|
||||||
};
|
};
|
Reference in New Issue
Block a user