From 853d3bfec8078d20ab1d3a6fce3c3c2e2c637e3b Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Wed, 5 Apr 2023 14:13:13 +0100 Subject: [PATCH] Add auth test route (Only in app.js) Signed-off-by: Fred Boniface --- app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 789962e..66f0c15 100644 --- a/app.js +++ b/app.js @@ -49,7 +49,7 @@ app.use((err, req, res, next) => { return; }); -// Middleware: +// Global Middleware: app.use(express.json()); //JSON Parsing for POST Requests app.use(compression()) // Compress API Data if supported by client @@ -63,6 +63,7 @@ app.use('/api/v1/stats', statRtr) // Authented Routes app.use('/api/v1/ldbs', authenticate) +app.use('/api/v1/auth/test', authenticate) // Start Express app.listen(srvPort, srvListen, (error) =>{