conversion from php to nodejs started
This commit is contained in:
		
							
								
								
									
										13
									
								
								nodejs/routes/index.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								nodejs/routes/index.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * GET home page.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
var package = require(__dirname+"/../package.json");
 | 
			
		||||
 | 
			
		||||
exports.index = function(req, res) {
 | 
			
		||||
    res.render('index', {
 | 
			
		||||
        packagename: package.name,
 | 
			
		||||
        packageversion: package.version
 | 
			
		||||
  });
 | 
			
		||||
};
 | 
			
		||||
		Reference in New Issue
	
	Block a user