refract: file structure

This commit is contained in:
cv
2021-04-10 11:54:41 +02:00
parent 9a8c4a8a5a
commit c2521404ca
3 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ const playbackRouter = require('./routes/playbackRouter.js');
const port = process.env.PORT || config.server.port; const port = process.env.PORT || config.server.port;
// Global Objects // Global Objects
const Timer = require('./timer.js'); const Timer = require('./classes/Timer.js');
// TODO: this should be replaced by some sort of calculation // TODO: this should be replaced by some sort of calculation
let durationForNow = 5400; let durationForNow = 5400;
global.timer = new Timer(); global.timer = new Timer();
View File
@@ -116,4 +116,5 @@ class Timer {
} }
} }
module.exports = Timer; module.exports = Timer;