data export commit, supports exporting task history via csv

*adds the following new dependencies: moment, express-csv
*recommend replacing functionality of 'relative-date' with features from 'moment'
*supports retrieval of CSV history via the API and in browser
**/api/v1/export/history (requires typical API authorization)
**/export/history.csv (requires session authorization)
*adds new routes for data export
This commit is contained in:
Nick Gordon
2013-11-15 06:18:16 -08:00
parent 528fd5f067
commit 7bf1bf2af0
7 changed files with 78 additions and 1 deletions
+1
View File
@@ -116,6 +116,7 @@ if ("development" === app.get("env")) {
app.use(require('./routes/pages').middleware);
app.use(require('./routes/auth').middleware);
app.use('/api/v1', require('./routes/api').middleware);
app.use('/export', require('./routes/dataexport').middleware);
app.use(require('./controllers/deprecated').middleware);
server = http.createServer(app).listen(app.get("port"), function() {
return console.log("Express server listening on port " + app.get("port"));