Created
January 9, 2023 00:16
-
-
Save felipekm/38eacbe8bcbb3cfae6f1057295f7020e to your computer and use it in GitHub Desktop.
Express Gist
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
import express 'express'; | |
const app = express(); | |
app.use(express.json()); | |
app.use(express.bodyParser()); | |
// Using Middlewares | |
// app.use(express.myMiddleWare()) | |
app.post('/', (req, res) => { | |
return res.json(res.body); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment