forked from lbsadmin/nodeMessageBoard
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			483 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			483 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // functions that will be executed when
 | |
| // typeoff handle[pathname] === a function in requestHandlers.
 | |
| // the handle and function are discribed in index.js
 | |
| 
 | |
| var fs = require('fs'),
 | |
| server = require('./server');
 | |
| 
 | |
| function sendInterface(response) {
 | |
|   console.log("Request handler 'interface' was called.");
 | |
|   response.writeHead(200, {"Content-Type": "text/html"});
 | |
|   var html = fs.readFileSync(__dirname + "/board.html")
 | |
|   response.end(html);
 | |
| }
 | |
| 
 | |
| exports.sendInterface = sendInterface;
 |