Fix require misspelling
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
f6190bb1c9
commit
b32c34fe7d
2
app.js
2
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/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/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/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:
|
// Number of proxies:
|
||||||
app.set('trust proxy', 4);
|
app.set('trust proxy', 4);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
const version = {
|
const version = {
|
||||||
api: ['/api/v1/',],
|
api: ['/api/v1/',],
|
||||||
app: '2023.5.4'
|
app: '2023.5.5'
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = version;
|
module.exports = version;
|
@ -1,4 +1,4 @@
|
|||||||
const train = require('../services/train.services');
|
const train = require('../services/trainService.services');
|
||||||
|
|
||||||
async function getByHeadcode(req, res, next){
|
async function getByHeadcode(req, res, next){
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user