<commit_before>'use strict';

  var users = require('../../app/controllers/users.server.controller'),
    adminRoles = require('../../app/controllers/admin/roles.server.controller.js'),
    adminUsers = require('../../app/controllers/admin/users.server.controller.js');

module.exports = function(app) {
  app.route('/admin/*').all(users.requiresLogin);
  app.route('/admin/roles/add').post(adminRoles.addRoles);
  app.route('/admin/roles').get(adminRoles.getRoles);
  app.route('/admin/users/role').post(adminRoles.getRoles);
  app.route('/admin/users').get(adminRoles.getUsers);
};<commit_msg>created route to add roles to user<commit_after>'use strict';

  var users = require('../../app/controllers/users.server.controller'),
    adminRoles = require('../../app/controllers/admin/roles.server.controller.js'),
    adminUsers = require('../../app/controllers/admin/users.server.controller.js');

module.exports = function(app) {
  app.route('/admin/*').all(users.requiresLogin);
  app.route('/admin/role/add').post(adminRoles.addRoles);
  app.route('/admin/roles').get(adminRoles.getRoles);
  app.route('/admin/user/role').post(adminRoles.getRoles);
  app.route('/admin/users').get(adminRoles.getUsers);
  app.route('/admin/user/role/add').post(adminRoles.addUserRoles);
};
{'fraction_non_alphanumeric': 0.2115987460815047, 'fraction_numerical': 0.0, 'mean_word_length': 4.6255506607929515, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3809599', 'n_tokens_mistral': 419, 'n_tokens_neox': 414, 'n_words': 39}