mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-21 03:01:37 +02:00
feat: group exists API call in write api
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user