added new endpoint

This commit is contained in:
2024-11-02 22:15:24 +03:00
parent 317fba81aa
commit c34cd7f809
2 changed files with 9 additions and 0 deletions

View File

@@ -49,6 +49,14 @@ class GroupController {
return res.status(200).send(group["id"].toString());
}
async getById(req, res) {
let groupId = req.params.groupId;
let groupName = (await GroupService.getById(groupId)).name;
return res.status(200).send(groupName);
}
async getUsersInGroup(req, res) {
const groupId = req.params.groupId;