Fix require misspelling

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-05-31 20:16:41 +01:00
parent f6190bb1c9
commit b32c34fe7d
3 changed files with 3 additions and 3 deletions

2
app.js
View File

@ -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);

View File

@ -1,6 +1,6 @@
const version = {
api: ['/api/v1/',],
app: '2023.5.4'
app: '2023.5.5'
};
module.exports = version;

View File

@ -1,4 +1,4 @@
const train = require('../services/train.services');
const train = require('../services/trainService.services');
async function getByHeadcode(req, res, next){
try {