|
@@ -34,6 +34,14 @@ app.get('/album/:album', function (req, resp) {
|
|
|
tagger.getAlbum(album,f);
|
|
tagger.getAlbum(album,f);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+app.get('/album/artist/:artist', function (req, resp) {
|
|
|
|
|
+ var artist = req.params.artist;
|
|
|
|
|
+ function f(a){
|
|
|
|
|
+ resp.send(JSON.stringify(a));
|
|
|
|
|
+ }
|
|
|
|
|
+ tagger.getAlbumByArtist(artist,f);
|
|
|
|
|
+});
|
|
|
|
|
+
|
|
|
app.get('/song/:song', function (req, resp) {
|
|
app.get('/song/:song', function (req, resp) {
|
|
|
resp.writeHead(200, {
|
|
resp.writeHead(200, {
|
|
|
"Connection": "keep-alive"
|
|
"Connection": "keep-alive"
|