{"size": 627, "ext": "js", "max_stars_repo_path": "server/routes/v1/route/group.route.js", "max_stars_repo_name": "prociv-sm/prociv-api", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/routes/v1/route/group.route.js", "max_issues_repo_name": "prociv-sm/prociv-api", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/routes/v1/route/group.route.js", "max_forks_repo_name": "prociv-sm/prociv-api", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 33.0, "max_line_length": 82, "alphanum_fraction": 0.7527910686}
const express = require('express');
const validate = require('../../../middlewares/validate');
const groupController = require('../../../controllers/group.controller');
const groupValidation = require('../../../validations/group.validation');

const router = express.Router();

router
  .route('/')
  .get(groupController.getGroups)

router
  .route('/:chatId')
  .get(validate(groupValidation.getGroupData), groupController.getGroupData)
  .put(validate(groupValidation.updateGroupData), groupController.updateGroupData)
  .delete(validate(groupValidation.getGroupData), groupController.deleteGroup)

module.exports = router;
