moved UI stuff into the settings area, moved authWithSession to the Auth controller

This commit is contained in:
Nick Gordon
2013-11-15 16:25:09 -08:00
parent e2e7ba15b2
commit 5116a99dce
6 changed files with 60 additions and 39 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
var express = require('express');
var router = new express.Router();
var dataexport = require('../controllers/dataexport');
var auth = require('../controllers/auth');
var nconf = require('nconf');
/* Data export */
router.get('/history.csv',dataexport.auth,dataexport.history); //[todo] encode data output options in the data controller and use these to build routes
router.get('/history.csv',auth.authWithSession,dataexport.history); //[todo] encode data output options in the data controller and use these to build routes
module.exports = router;
module.exports = router;