Open hdon opened 6 years ago
If I have something like the following:
const Album = bookshelf.Model.extend({ songs: function() { return this.hasMany(Song) } }) const Song = bookshelf.Model.extend({ album: function() { return this.belongsTo(Song) } }) api.expose(Album);
Is there a way to hook requests like GET /albums/1/songs?
GET /albums/1/songs
If I have something like the following:
Is there a way to hook requests like
GET /albums/1/songs
?