Created
April 16, 2018 17:34
-
-
Save ValeryC/4b07dde3e5fd1c0ec8eaeeb57233a948 to your computer and use it in GitHub Desktop.
This file contains 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() | |
app.use('/superMiddleware', (req, res, next) => { | |
console.log('hello middleware ') | |
next() | |
}, | |
(req, res, next) => { | |
res.send('hello world') | |
}) | |
app.listen(3000, () => { | |
console.log("go to : http://localhost:3000/superMiddleware") | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment