Skip to content

Instantly share code, notes, and snippets.

@frankrowe
Last active August 29, 2015 14:00
Show Gist options
  • Save frankrowe/0d29a63f49befc55bbd3 to your computer and use it in GitHub Desktop.
Save frankrowe/0d29a63f49befc55bbd3 to your computer and use it in GitHub Desktop.
var express = require('express')
, csvorjson = require('csvorjson')
var workController = express.Router()
workController.get('/jobs', function(req, res, next) {
runquery(function(data){
csvorjson(req, res, data)
}
})
module.exports = workController
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment