clean up development config

This commit is contained in:
Eric Hulburd
2016-02-09 11:16:49 -06:00
parent 109ad432bb
commit a334afbc01
20 changed files with 170 additions and 111 deletions

View File

@@ -1,11 +1,16 @@
import DB from './../config/database.js';
const NAME = HousesController;
class HousesController{
static index(req, res){
DB.House.findAll({attributes: ['id', 'name']}).then((houses){
DB.House.findAll({attributes: ['id', 'name']}).then((houses)=>{
res.json(houses);
});
}
}
HousesController.NAME = NAME;
module.exports = HousesController;