From 47e62c39ea6b6e4ba3742243b7c786b835b5781d Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Thu, 19 Dec 2013 13:25:52 -0500 Subject: [PATCH] Moved Last.fm key/secret into config.js --- controllers/api.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/controllers/api.js b/controllers/api.js index 4ea9e18210..6a7ab4a2b2 100644 --- a/controllers/api.js +++ b/controllers/api.js @@ -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", {