We dont need the second one, probably

This commit is contained in:
Pitu 2018-09-16 01:10:46 -03:00
parent fe10a00ba9
commit 04cb6dcce5
1 changed files with 1 additions and 17 deletions

View File

@ -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;