<commit_before>"use strict";

var plugin = {},
	meta = module.parent.require('./meta');

plugin.init = function(params, callback) {
	var app = params.app,
		middleware = params.middleware,
		controllers = params.controllers;
		
	app.get('/admin/registration-question', middleware.admin.buildHeader, renderAdmin);
	app.get('/api/admin/registration-question', renderAdmin);

	callback();
};

plugin.addAdminNavigation = function(header, callback) {
	header.plugins.push({
		route: '/registration-question',
		icon: 'fa-tint',
		name: 'registration-question'
	});

	callback(null, header);
};

plugin.addCaptcha = function(req, res, templateData, callback) {
	var question = meta.config['registration-question:question'];

	var captcha = {
		label: 'Registration Question',
		html: '<div class="well"><strong>' + question + '</strong><br /><input class="form-control" name="registration-question" id="registration-question" /></div>'
	};
<commit_msg>fixing router issue<commit_after>"use strict";

var plugin = {},
	meta = module.parent.require('./meta');

plugin.init = function(params, callback) {
	var app = params.router,
		middleware = params.middleware,
		controllers = params.controllers;
		
	app.get('/admin/registration-question', middleware.admin.buildHeader, renderAdmin);
	app.get('/api/admin/registration-question', renderAdmin);

	callback();
};

plugin.addAdminNavigation = function(header, callback) {
	header.plugins.push({
		route: '/registration-question',
		icon: 'fa-tint',
		name: 'registration-question'
	});

	callback(null, header);
};

plugin.addCaptcha = function(req, res, templateData, callback) {
	var question = meta.config['registration-question:question'];

	var captcha = {
		label: 'Registration Question',
		html: '<div class="well"><strong>' + question + '</strong><br /><input class="form-control" name="registration-question" id="registration-question" /></div>'
	};

{'fraction_non_alphanumeric': 0.16920651602732528, 'fraction_numerical': 0.0, 'mean_word_length': 5.325581395348837, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6379961', 'n_tokens_mistral': 602, 'n_tokens_neox': 559, 'n_words': 116}