We dont need the second one, probably
This commit is contained in:
parent
fe10a00ba9
commit
04cb6dcce5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue