Routes scaffolding figured out

This commit is contained in:
Fergal Moran
2014-03-21 22:04:25 +00:00
parent 7ccc745eb7
commit d4e760aee7
15 changed files with 26 additions and 19 deletions

View File

@@ -19,8 +19,8 @@ User.find({}).remove(function() {
);
});
console.log("Creating promotions");
Promotion.find({}).remove(function(){
console.log("Creating promotions");
Promotion.create({
title: 'Dev prom 1',
user: user
@@ -30,7 +30,7 @@ Promotion.find({}).remove(function(){
}, {
title: 'Dev prom 3',
user: user
}, function(){
}, function(err){
console.log('finished populating promotions');
});
});

View File

@@ -1,8 +1,8 @@
'use strict';
module.exports = {
env: 'development',
mongo: {
uri: 'mongodb://localhost/roboto-dev'
}
env: 'development',
mongo: {
uri: 'mongodb://localhost/roboto-dev'
}
};