Skip to content

Instantly share code, notes, and snippets.

@felipekm
Created January 9, 2023 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipekm/38eacbe8bcbb3cfae6f1057295f7020e to your computer and use it in GitHub Desktop.
Save felipekm/38eacbe8bcbb3cfae6f1057295f7020e to your computer and use it in GitHub Desktop.
Express Gist
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