Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gaarf committed Aug 26, 2011
1 parent 1444705 commit b7c3fdd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,4 +1,4 @@
.DS_Store?
.DS_Store
logs/*
*.log
node_modules/*
10 changes: 7 additions & 3 deletions boot.js
Expand Up @@ -86,15 +86,19 @@ module.exports.boot = function(app, express) {
* Models
*/
// fs.readdirSync('./models').forEach(function(file){
// var model = require('./models/' + file);
// app.STUFF.model[model.def.name] = model.get(app);
// if(file.match(/\.js$/)) {
// var model = require('./models/' + file);
// app.STUFF.model[model.def.name] = model.get(app);
// }
// });

/**
* Routes
*/
fs.readdirSync('./controllers').forEach(function(file){
require('./controllers/' + file).setRoutes(app, express);
if(file.match(/\.js$/)) {
require('./controllers/' + file).setRoutes(app, express);
}
});

/**
Expand Down

0 comments on commit b7c3fdd

Please sign in to comment.