Add auth test route (Only in app.js)
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
f9a6a46799
commit
853d3bfec8
3
app.js
3
app.js
@ -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) =>{
|
||||||
|
Loading…
Reference in New Issue
Block a user