load database questions

This commit is contained in:
psychobunny
2015-04-21 19:10:47 -04:00
parent a11652ead1
commit bf13b6160f
2 changed files with 43 additions and 10 deletions

View File

@@ -48,7 +48,19 @@ function setupRoutes() {
}
function install(req, res, next) {
res.render('install/index', {});
var dbs = ['redis', 'mongo'],
databases = [];
dbs.forEach(function(el) {
databases.push({
name: el,
questions: require('../src/database/' + el).questions
});
});
res.render('install/index', {
databases: databases
});
}
function compileLess(callback) {