<commit_before>'use strict';

module.exports = function(app) {
  var express = require('express');
  var atms = require('../../app/controllers/atms.server.controller');
  var router = express.Router();
  app.use('/api/v2', router);
  // router.use();
    router.route('/atms/search')
      .get(atms.queryATM);
    router.route('/atms')
      .get(atms.ATMByDistance)
      .post(atms.createATM);
    router.route('/atms/:id')
      .get(atms.getOneATM)
      .post(atms.updateATM)
      .delete(atms.deleteATM);
};<commit_msg>editied route to factor out 'atms'<commit_after>'use strict';

module.exports = function(app) {
  var express = require('express');
  var atms = require('../../app/controllers/atms.server.controller');
  var router = express.Router();
  app.use('/api/v2/atms', router);
  // router.use();
    router.route('/search')
      .get(atms.queryATM);
    router.route('/')
      .get(atms.ATMByDistance)
      .post(atms.createATM);
    router.route('/:id')
      .get(atms.getOneATM)
      .post(atms.updateATM)
      .delete(atms.deleteATM);
};
{'fraction_non_alphanumeric': 0.19418386491557224, 'fraction_numerical': 0.001876172607879925, 'mean_word_length': 3.0881226053639845, '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': '5754717', 'n_tokens_mistral': 382, 'n_tokens_neox': 382, 'n_words': 55}