From 455eaf0932bee6cb3c1a344730dfeeb89913e3c6 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Wed, 16 Dec 2015 20:41:54 +0100 Subject: [PATCH] add skeleton for groups controller --- website/src/controllers/api-v3/groups.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 website/src/controllers/api-v3/groups.js diff --git a/website/src/controllers/api-v3/groups.js b/website/src/controllers/api-v3/groups.js new file mode 100644 index 0000000000..cf8c3c9ca5 --- /dev/null +++ b/website/src/controllers/api-v3/groups.js @@ -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;