add skeleton for groups controller

This commit is contained in:
Matteo Pagliazzi
2015-12-16 20:41:54 +01:00
parent bf7fc985d0
commit 455eaf0932
+20
View File
@@ -0,0 +1,20 @@
let api = {};
/**
* @api {get} /groups/:groupId Get a group by its id
* @apiVersion 3.0.0
* @apiName GetGroup
* @apiGroup Group
*
* @apiSuccess {Object} group The group object
*/
api.getGroup = {
method: 'GET',
url: '/groups/:groupId',
middlewares: [authWithHeaders()],
handler (req, res, next) {
// ...
},
};
export default api;