This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var r_login = require('./login'); | |
var r_posts = require('./posts'); | |
var r_errors = require('./errors'); | |
var expressWinston = require('express-winston'); | |
var winston = require('winston'); | |
module.exports = function(app) { | |
//express-winston logger makes sense BEFORE the router. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http') | |
var server = http.createServer(function(req, res) { | |
res.writeHead(200, {"Content-Type": "text/plain"}); | |
res.write("hello \n") | |
setTimeout(function() { | |
res.end("world \n") | |
}, 2000); | |
}); |
NewerOlder