From 04cb6dcce574efbaecf80071acd8219a8b5fd6f7 Mon Sep 17 00:00:00 2001 From: Pitu <7425261+Pitu@users.noreply.github.com> Date: Sun, 16 Sep 2018 01:10:46 -0300 Subject: We dont need the second one, probably --- src/api/routes/albums/albumGET.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/api/routes') diff --git a/src/api/routes/albums/albumGET.js b/src/api/routes/albums/albumGET.js index 80affd2..f9e5208 100644 --- a/src/api/routes/albums/albumGET.js +++ b/src/api/routes/albums/albumGET.js @@ -33,20 +33,4 @@ class albumGET extends Route { } } -class albumsDropdownGET extends Route { - constructor() { - super('/albums/:identifier', 'get'); - } - - async run(req, res, user) { - const albums = await db.table('albums') - .where('userId', user.id) - .select('id', 'name'); - return res.json({ - message: 'Successfully retrieved albums', - albums - }); - } -} - -module.exports = [albumGET, albumsDropdownGET]; +module.exports = albumGET; -- cgit v1.2.3