seperate upload and report screens
This commit is contained in:
9
controllers/doorLock.js
Normal file
9
controllers/doorLock.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
const uploadDoorLockData = (req, res) => {
|
||||
res.json({status: 'ok'});
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
uploadDoorLockData,
|
||||
};
|
||||
@@ -1,22 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const calculateDoorLockCharges = (req, res) => {
|
||||
res.json([
|
||||
{
|
||||
member: 'Dummy Member A',
|
||||
date: new Date(),
|
||||
room: 'Blue room',
|
||||
fee: 10,
|
||||
},
|
||||
{
|
||||
member: 'Dummy Member B',
|
||||
date: new Date(),
|
||||
room: 'White room',
|
||||
fee: 20,
|
||||
}
|
||||
]);
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
calculateDoorLockCharges,
|
||||
};
|
||||
Reference in New Issue
Block a user