dont know what happened
This commit is contained in:
16
server/controllers/power_controller.js
Normal file
16
server/controllers/power_controller.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import DB from './../config/database.js';
|
||||
|
||||
const NAME = 'PowerController';
|
||||
|
||||
class PowerController{
|
||||
|
||||
static index(req, res){
|
||||
DB.PowerDatum.exposeForHouseAtDates(req.query.house_id, req.query.dates).then((power_data)=>{
|
||||
res.json({data: power_data});
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
PowerController.NAME = NAME;
|
||||
module.exports = PowerController;
|
||||
Reference in New Issue
Block a user