completed IoT sensor
This commit is contained in:
22
Web-Server/middleware/ApiLogger.js
Normal file
22
Web-Server/middleware/ApiLogger.js
Normal file
@ -0,0 +1,22 @@
|
||||
//middleware
|
||||
|
||||
|
||||
/*
|
||||
const myLogger = function (req, res, next) {
|
||||
console.log('LOGGED')
|
||||
next()
|
||||
}
|
||||
|
||||
// Apply the middleware to a specific route
|
||||
app.use('/special-route', myLogger));
|
||||
|
||||
*/
|
||||
|
||||
const APIlogger = (req, res, next) => {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
module.exports = { }
|
Reference in New Issue
Block a user