mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
18 lines
425 B
JavaScript
18 lines
425 B
JavaScript
#!/usr/bin/env node
|
|
|
|
var express = require('express');
|
|
var app = express();
|
|
|
|
app.get('/', function (req, res) {
|
|
//
|
|
// CORS
|
|
//
|
|
res.setHeader("Access-Control-Allow-Origin", "*");
|
|
res.send('Hello World!');
|
|
});
|
|
|
|
var server = app.listen(3001, function () {
|
|
var host = server.address().address;
|
|
var port = server.address().port;
|
|
console.log('Example app listening at http://%s:%s', host, port);
|
|
});
|