-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Hi, I'm trying to add halacious to an existing REST api and can't find how to do so for collection end points.
For example the following returns an array of pieces:
{
method: 'GET',
path: '/volumes/{id}/pieces',
config: {
tags: ['api'],
handler: function (request, reply) {
var query = request.db.piece.findAll({
where : { volumeId: request.params.id }
});
return reply(query);
},
validate: {
params: {
id: Joi.number().required()
}
}
}
}
Is this possible already or would this be a new feature?
Metadata
Metadata
Assignees
Labels
No labels