feat: group exists API call in write api

This commit is contained in:
Julian Lam
2020-11-06 12:18:42 -05:00
parent 1446cec77f
commit d263192271
5 changed files with 18 additions and 9 deletions

View File

@@ -6,6 +6,10 @@ const helpers = require('../helpers');
const Groups = module.exports;
Groups.exists = async (req, res) => {
helpers.formatApiResponse(200, res);
};
Groups.create = async (req, res) => {
const groupObj = await api.groups.create(req, req.body);
helpers.formatApiResponse(200, res, groupObj);