// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>I said "Oh my!" What a marvelous tune!!!</h1>'); });
app.use((req, res, next) => { res.header("x-powered-by", "ZeroServer"); next(); });
app.get('/', function (req, res) { res.header('Content-Type', 'text/html'); res.send(renderer.render() + '<script> window.connections = ' + JSON.stringify(connections) + '</script>'); });
//todo: possibly unsafe? -- look to make this configurable, rather have opt-in than opt-out so default is secure app.use(function(req, res, next) { res.header("Access-Control-Allow-Credentials", true); res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Authorization"); next(); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>I said "Oh my!" What a marvelous tune!!!</h1>'); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>I said "Oh my!" What a marvelous tune!!!</h1>'); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>DANCING DANCING STARLIGHT</h1>'); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>DANCING DANCING STARLIGHT</h1>'); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>I said "Oh my!" What a marvelous tune!!!</h1>'); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>I said "Oh my!" What a marvelous tune!!!</h1>'); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>I said "Oh my!" What a marvelous tune!!!</h1>'); });
// Basic HTTP response app.get('/', (req, res) => { res.header('Content-type', 'text/html'); return res.end('<h1>DANCING DANCING STARLIGHT</h1>'); });
app.use((req, res, next) => { res.header("x-powered-by", "ZeroServer"); next(); });
app.get('/', function (req, res) { res.header('Content-Type', 'text/html'); res.send(renderer.render() + '<script> window.connections = ' + JSON.stringify(connections) + '</script>'); });