<commit_before>// require controllers here
var usersController = require('../users/usersController.js');
var genresController = require('../genres/genresController.js');
var moviesController = require('../movies/moviesController.js');
var prefsController = require('../prefs/prefsController.js');
var sessionsController = require('../sessions/sessionsController.js');
var votesController = require('../votes/votesController.js');
var helpers = require('./helpers.js'); // our custom middleware


module.exports = function ( app, express ) {
  /* USERS */
  app.get('/api/users', usersController.getAllUsers);
  app.post('/api/users/signin', usersController.signin);
  app.post('/api/users/signup', userController.signup);
  app.post('/api/users/signout', userController.signout);

  /* GENRES */
  app.get('/api/genres', genresController.getAllGenres);
  app.get('/api/genres/:genre', genresController.getGenre);

  /* MOVIES */
  app.get('/api/movies', moviesController.getAllMovies);
  app.get('/api/movies/:movie', moviesController.getMovie);

  /* PREFS */<commit_msg>Fix spelling error<commit_after>// require controllers here
var usersController = require('../users/usersController.js');
var genresController = require('../genres/genresController.js');
var moviesController = require('../movies/moviesController.js');
var prefsController = require('../prefs/prefsController.js');
var sessionsController = require('../sessions/sessionsController.js');
var votesController = require('../votes/votesController.js');
var helpers = require('./helpers.js'); // our custom middleware


module.exports = function ( app, express ) {
  /* USERS */
  app.get('/api/users', usersController.getAllUsers);
  app.post('/api/users/signin', usersController.signin);
  app.post('/api/users/signup', usersController.signup);
  app.post('/api/users/signout', usersController.signout);

  /* GENRES */
  app.get('/api/genres', genresController.getAllGenres);
  app.get('/api/genres/:genre', genresController.getGenre);

  /* MOVIES */
  app.get('/api/movies', moviesController.getAllMovies);
  app.get('/api/movies/:movie', moviesController.getMovie);

  /* PREFS */
{'fraction_non_alphanumeric': 0.17759181775918179, 'fraction_numerical': 0.0, 'mean_word_length': 4.831978319783198, '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': '7114426', 'n_tokens_mistral': 666, 'n_tokens_neox': 646, 'n_words': 106}