Created
December 20, 2016 02:57
-
-
Save ianaya89/358b75c28e2299bdb3a45361feca0ad9 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
const express = require('express'); | |
const app = express(); | |
var logger = (req, res, next) => { | |
console.log('LOGGED'); | |
next(); | |
} | |
app.use(logger); | |
app.get('/', (req, res) => { | |
res.send('Hello World!'); | |
}) | |
app.listen(3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment