I am trying to set the content-type to application/json in my Node js app. I see examples of setting the content-type in the http.createServer routine, I'm using express so that syntax makes no sense to me! But I believe I can set the content type in my mysql query routine which would make more sense since I have multiple queries happening, both mysql and oracle.
If I do need to set up the content type in the server build, here's how I'm setting up the server:
var express = require('express');
var app = express();
var server = require('http').Server(app);
var io = require('socket.io')(server)
Thanks for any assistance. Node is driving me crazy...