Last active
January 28, 2019 12:28
-
-
Save paulobunga/f283c263be20d22c60f29ed49b2a26f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This is the file using the middleware below | |
const express = require('express'); | |
const myMiddleware = require('./myMiddleware'); | |
const app = express(); | |
app.get('/', myMiddleware.logToConsole, (req, res) => { | |
res.send('Middleware example'); | |
}); | |
app.listen(3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment