diff --git a/app.js b/app.js index 97e9366..52fe845 100644 --- a/app.js +++ b/app.js @@ -81,7 +81,7 @@ app.use('/api/v1/register', regRtr); app.use('/api/v1/ldbs', authenticate, (req, res) => res.status(501).json({status: 'Not Implemented', message: 'This feature is not yet implemented due to upstream issues'})); app.use('/api/v1/pis', authenticate, pisRtr); app.use('/api/v1/auth/test', authenticate, (req, res) => res.status(200).json({status: 'ok', message: 'Authentication successful'})); // Returns 401 if auth failed, 200 if successful. -app.use('/api/v1/train', authenticate, trainRtr); +app.use('/api/v1/train', /*authenticate,*/ trainRtr); // Disable authentication during testing // Number of proxies: app.set('trust proxy', 4); diff --git a/src/configs/version.configs.js b/src/configs/version.configs.js index fd370aa..d305881 100644 --- a/src/configs/version.configs.js +++ b/src/configs/version.configs.js @@ -1,6 +1,6 @@ const version = { api: ['/api/v1/',], - app: '2023.5.4' + app: '2023.5.5' }; module.exports = version; \ No newline at end of file diff --git a/src/controllers/train.controllers.js b/src/controllers/train.controllers.js index a1d1a9e..9a7bfe8 100644 --- a/src/controllers/train.controllers.js +++ b/src/controllers/train.controllers.js @@ -1,4 +1,4 @@ -const train = require('../services/train.services'); +const train = require('../services/trainService.services'); async function getByHeadcode(req, res, next){ try {