text: module.exports = function(router) {
  	
  	var version = 'beta/v102-0-0';
  
  	/**********
  	 * ADULTS
  	 * **********/
  
  	// GOV.UK Entry Point
  	router.get('/' + version + '/signed-in/external/child/allocation-statements/adults/start', function (req, res) {
  		res.render(version + '/start', {
  			'version' : version
  		});
  	});
  	router.post('/' + version + '/signed-in/external/child/allocation-statements/adults/start', function (req, res) {		
  		res.redirect('/' + version + '/signed-in/external/child/allocation-statements/adults/idams');
  	});
  
  	// User roles and permissions 
  	router.get('/' + version + '/signed-in/external/child/allocation-statements/adults/roles-permissions', function (req, res) {
  		res.render(version + '/roles-permissions', {
  			'version' : version
  		});
  	});
  
  	// IDAMS
  	router.get('/' + version + '/signed-in/external/child/allocation-statements/adults/idams', function (req, res) {
  		res.render(version + '/idams', {
  			'version' : version
  		});
  	});
  	router.post('/' + version + '/signed-in/external/child/allocation-statements/adults/idams', function (req, res) {		
  		res.redirect('/' + version + '/signed-in/external/child/allocation-statements/adults/dashboard');
  	});
  
  	// Dashboard
  	router.get('/' + version + '/signed-in/external/child/allocation-statements/adults/dashboard', function (req, res) {
  	
  		req.session.idams = "dashboard";
  		
  		res.render(version + '/signed-in/external/child/allocation-statements/dashboard', {
  			'version' : version,
  			'idams' : req.session.idams,
  			'apprenticeshipServiceAccess' : req.query.apprenticeshipServiceAccess
  		});
  	});
  
  	// Allocation statements
  	router.get('/' + version + '/signed-in/external/child/allocation-statements/adults/allocation-statement-list', function (req, res) {
  
  		req.session.idams = "adults";
  		
  		res.render(version + '/signed-in/external/child/allocation-statements/adults/allocation-statement-list', {
  			'version' : version,
  			'idams' : req.session.idams
  		});
  	});
  
  	// 16 to 18 traineeships for 2018 to 2019
  	router.get('/' + version + '/signed-in/external/child/allocation-statements/adults/16-to-18-traineeships', function (req, res) {
  
  		req.session.idams = "adults";
  		
  		res.render(version + '/signed-in/external/child/allocation-statements/adults/16-to-18-traineeships', {
  			'version' : version,
  			'idams' : req.session.idams
  		});
  	});
  
  	// Apprenticeship carry-in for 2018 to 2019
  	router.get('/' + version + '/signed-in/external/child/allocation-statements/adults/apprenticeship-carry-in-details', function (req, res) {
  
  		req.session.idams = "adults";
  		
  		res.render(version + '/signed-in/external/child/allocation-statements/adults/apprenticeship-carry-in-details', {
  			'version' : version,
  			'idams' : req.session.idams
  		});
  	});
  
  	// ESFA adult education budget 2018 to 2019 (v2)
  	router.get('/' + version + '/signed-in/external/child/allocation-statements/adults/esfa-adult-education-budget-details-v2', function (req, res) {
  
  		req.session.idams = "adults";
  		
  		res.render(version + '/signed-in/external/child/allocation-statements/adults/esfa-adult-education-budget-details-v2', {
  			'version' : version,
  			'idams' : req.session.idams,
  			'interimDesign' : req.query.interimDesign 
  		});
  	});
  
  	// ESFA adult education budget 2018 to 2019 (v1)
  	router.get('/' + version + '/signed-in/external/child/allocation-statements/adults/esfa-adult-education-budget-details-v1', function (req, res) {
  
  		req.session.idams = "adults";
  		
  		res.render(version + '/signed-in/external/child/allocation-statements/adults/esfa-adult-education-budget-details-v1', {
  			'version' : version,
  			'idams' : req.session.idams,
  			'interimDesign' : req.query.interimDesign
  		});
  	});
  
  	// Advanced learner loans for 2018 to 2019 (v2)
  	router.get('/' + version + '/signed-in/external/child/allocation-statements/adults/advanced-learner-loan-details-v2', function (req, res) {
  
  		req.session.idams = "adults";
  		
  		res.render(version + '/signed-in/external/child/allocation-statements/adults/advanced-learner-loan-details-v2', {
  			'version' : version,
  			'idams' : req.session.idams
  		});
  	});
  
  	// Advanced learner loans for 2018 to 2019 (v1)
  	router.get('/' + version + '/signed-in/external/child/allocation-statements/adults/advanced-learner-loan-details-v1', function (req, res) {
  
  		req.session.idams = "adults";
  		
  		res.render(version + '/signed-in/external/child/allocation-statements/adults/advanced-learner-loan-details-v1', {
  			'version' : version,
  			'idams' : req.session.idams
  		});
  	});
  
  }
  