<commit_before>/**
 * @fileOverview The talksession routes.
 */
var crude = require('crude');
var log = require('logg').getLogger('kansas.webRouter');

var ApplicationCtrl = require('../controllers/manage/application.ctrl');

var router = module.exports = {};

router.init = function(app) {
  log.fine('init() :: initializing routes...');
  var applicationCtrl = ApplicationCtrl.getInstance();

  crude.route.addRaw(app, '/application', applicationCtrl);
};<commit_msg>DI for routes, add token route<commit_after>/**
 * @fileOverview The talksession routes.
 */
var crude = require('crude');
var log = require('logg').getLogger('kansas.webRouter');

var router = module.exports = {};

/**
 * A static function to apply routes
 * @param {kansas.Main} kansas An instance of main.
 */
router.init = function(kansas) {
  log.fine('init() :: initializing routes...');
  crude.route.addRaw(kansas.app, kansas.options.routePrefix + '/application',
    kansas.applicationCtrl);
  crude.route.addRaw(kansas.app, kansas.options.routePrefix + '/token',
    kansas.tokenCtrl);
};
{'fraction_non_alphanumeric': 0.16869728209934395, 'fraction_numerical': 0.0, 'mean_word_length': 4.772972972972973, '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': '7291063', 'n_tokens_mistral': 332, 'n_tokens_neox': 321, 'n_words': 73}