Files
habitica/website/src/controllers/api-v3/groups.js
T
2015-12-16 20:41:54 +01:00

21 lines
353 B
JavaScript

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;