var express = require('express');
var app = express();

var routes = require('./api/routes');

app.set('port', 14000);

app.use('/api/', routes);

app.listen(app.get('port'), function() {
});

var express = require('express');
var app = express();

var routes = require('./api/routes');

app.set('port', 14000);

app.use(function(req, res, next) {
  res.header('Access-Control-Allow-Origin', '*');
  next();
});

app.use('/api/', routes);

app.listen(app.get('port'), function() {
});

Allow CORS requests from all domains (*)
Allow CORS requests from all domains (*)

Since this is an API after all
