Add auth test route (Only in app.js)

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-04-05 14:13:13 +01:00
parent f9a6a46799
commit 853d3bfec8
1 changed files with 2 additions and 1 deletions

3
app.js
View File

@ -49,7 +49,7 @@ app.use((err, req, res, next) => {
return; return;
}); });
// Middleware: // Global Middleware:
app.use(express.json()); //JSON Parsing for POST Requests app.use(express.json()); //JSON Parsing for POST Requests
app.use(compression()) // Compress API Data if supported by client app.use(compression()) // Compress API Data if supported by client
@ -63,6 +63,7 @@ app.use('/api/v1/stats', statRtr)
// Authented Routes // Authented Routes
app.use('/api/v1/ldbs', authenticate) app.use('/api/v1/ldbs', authenticate)
app.use('/api/v1/auth/test', authenticate)
// Start Express // Start Express
app.listen(srvPort, srvListen, (error) =>{ app.listen(srvPort, srvListen, (error) =>{