code: function generate_routes(dir_name, controller, routes) {
  	let route_def = cli.cat(dir_name + '/config/routes.js');
  	let lines = [], line;
  	let method, path, action;
  
  	routes.forEach((route) => {
  		// set parameters
  		method = route.method; path = route.path;
  		controller = route.controller; action = route.action;
  		// create and add line
  		line = `		this.${method}('${path}', '${controller}#${action}');`;
  		lines.push(line);
  	});
  	// add lines to config file
  	route_def = route_def.replace(/use\s?\(\)\s?{/, `use() {
  ${lines.join('\n')}${route_def.match(/use\s?\(\)\s?{\s*}/) ? '' : '\n'}`);
  	fs.writeFileSync(dir_name + '/config/routes.js', route_def);
  }
docs: PARAMS routes - { method, path, action }