aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorPitu <[email protected]>2018-09-16 01:10:46 -0300
committerPitu <[email protected]>2018-09-16 01:10:46 -0300
commit04cb6dcce574efbaecf80071acd8219a8b5fd6f7 (patch)
tree9210851328f10826a22b19068870d9fb2fd4160a /src/api
parentSite (diff)
downloadhost.fuwn.me-04cb6dcce574efbaecf80071acd8219a8b5fd6f7.tar.xz
host.fuwn.me-04cb6dcce574efbaecf80071acd8219a8b5fd6f7.zip
We dont need the second one, probably
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/albums/albumGET.js18
1 files changed, 1 insertions, 17 deletions
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;