Moved Last.fm key/secret into config.js

This commit is contained in:
Sahat Yalkabov
2013-12-19 13:25:52 -05:00
parent 0256770848
commit 47e62c39ea

View File

@ -184,11 +184,7 @@ exports.getNewYorkTimes = function(req, res) {
* Last.fm API example
*/
exports.getLastfm = function(req, res) {
var lastfm = new LastFmNode({
api_key: '1f3e35019e98124cc8f75f8ae99df25f',
secret: '4ae76d10d76cf680cebf4f0c8dea1aa4'
});
var lastfm = new LastFmNode(config.lastfm);
async.parallel({
artistInfo: function(done) {
lastfm.request("artist.getInfo", {