pis #12
3
app.js
3
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) =>{
|
||||
|
Loading…
Reference in New Issue
Block a user